public static class Simulator.ServerSession extends Session
| Constructor and Description |
|---|
ServerSession() |
ServerSession(Simulator app) |
ServerSession(Simulator app,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
rcvMessage(Message msg)
Called when a new Request or Answer has been received for this session.
|
void |
sndMessage(Message msg)
Called by the container when a message is about to be sent but before
it has been committed.
|
appendXml, createRequest, getAdapter, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvAnswer, rcvRequest, readExternal, removeAttribute, setAdapter, setAttribute, setListener, terminate, toString, writeExternalpublic ServerSession()
public ServerSession(Simulator app)
public void rcvMessage(Message msg) throws DiameterException, IOException
SessionrcvMessage in class Sessionmsg - the message that has been receivedIOException - if an error occured while processing the messageDiameterExceptionpublic void sndMessage(Message msg) throws IOException
SessionsndMessage in class Sessionmsg - the message being sentIOException - if an I/O error occurred while sending the message