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, writeExternal
public ServerSession()
public ServerSession(Simulator app)
public void rcvMessage(Message msg) throws DiameterException, IOException
Session
rcvMessage
in class Session
msg
- the message that has been receivedIOException
- if an error occured while processing the messageDiameterException
public void sndMessage(Message msg) throws IOException
Session
sndMessage
in class Session
msg
- the message being sentIOException
- if an I/O error occurred while sending the message