Package 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:
Externalizable,Serializable
- Enclosing class:
- Simulator
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrcvMessage(Message msg) Called when a new Request or Answer has been received for this session.voidsndMessage(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
appendXml, createRequest, getAdapter, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvAnswer, rcvRequest, readExternal, removeAttribute, setAdapter, setAttribute, setListener, terminate, toString, writeExternal
-
Constructor Details
-
ServerSession
public ServerSession() -
ServerSession
-
ServerSession
-
-
Method Details
-
rcvMessage
Description copied from class:SessionCalled when a new Request or Answer has been received for 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:
rcvMessagein classSession- Parameters:
msg- the message that has been received- Throws:
IOException- if an error occured while processing the messageDiameterException
-
sndMessage
Description copied from class:SessionCalled 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:
sndMessagein classSession- Parameters:
msg- the message being sent- Throws:
IOException- if an I/O error occurred while sending the message
-