Oracle WebLogic Communications Server 10.1 API Reference
com.bea.wcp.diameter.util
Class Simulator.ServerSession
java.lang.Object
com.bea.wcp.diameter.Session
com.bea.wcp.diameter.util.Simulator.ServerSession
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- com.bea.wcp.diameter.util.Simulator
- public static class Simulator.ServerSession
- extends Session
- See Also:
- Serialized Form
- Copyright © 2008 Oracle Corp. All Rights Reserved.
Method Summary |
void |
rcvMessage(Message msg)
Called when a new Request or Answer has been received http://news.com.com/2061-10802_3-6160230.html?tag=nefd.aoffor this session. |
void |
sndMessage(Message msg)
Called by the container when a message is about to be sent but before
it has been committed. |
Methods inherited from class com.bea.wcp.diameter.Session |
createRequest, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvAnswer, rcvRequest, removeAttribute, setAttribute, setListener, terminate, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Simulator.ServerSession
public Simulator.ServerSession(com.bea.wcp.diameter.util.Simulator app)
Simulator.ServerSession
public Simulator.ServerSession(com.bea.wcp.diameter.util.Simulator app,
java.lang.String id)
rcvMessage
public void rcvMessage(Message msg)
throws DiameterException,
java.io.IOException
- Description copied from class:
Session
- Called when a new Request or Answer has been received http://news.com.com/2061-10802_3-6160230.html?tag=nefd.aoffor this session.
The default behavior is to call rcvRequest() for a request or rcvAnswer()
for an answer message. Session implementations should not override this
method directly but override rcvRequest() or rcvAnswer() instead.
- Overrides:
rcvMessage
in class Session
- Parameters:
msg
- the message that has been received
- Throws:
java.io.IOException
- if an error occured while processing the message
DiameterException
sndMessage
public void sndMessage(Message msg)
throws java.io.IOException
- Description copied from class:
Session
- Called by the container when a message is about to be sent but before
it has been committed. This gives the Session a chance to update any
state that may change when a message has been sent out.
- Overrides:
sndMessage
in class Session
- Parameters:
msg
- the message being sent
- Throws:
java.io.IOException
- if an I/O error occurred while sending the message