public class SyClientSession extends Session
Constructor and Description |
---|
SyClientSession()
Used by Externalizable.
|
SyClientSession(SyApplication app)
Creates a new ClientSession for the specified application.
|
SyClientSession(SyApplication app,
String id,
Object parent) |
Modifier and Type | Method and Description |
---|---|
SySLR |
createSLR(SLRequestType type) |
SySNR |
createSNR() |
void |
rcvAnswer(Answer ans)
Called when an answer message has been received for this session.
|
void |
readExternal(ObjectInput is) |
void |
sndMessage(Message msg)
Called by the container when a message is about to be sent but before
it has been committed.
|
void |
writeExternal(ObjectOutput out) |
appendXml, createRequest, getAdapter, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvMessage, rcvRequest, removeAttribute, setAdapter, setAttribute, setListener, terminate, toString
public SyClientSession()
public SyClientSession(SyApplication app)
app
- applicationpublic SyClientSession(SyApplication app, String id, Object parent)
public SySLR createSLR(SLRequestType type)
public SySNR createSNR()
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 messagepublic void rcvAnswer(Answer ans) throws DiameterException, IOException
Session
rcvAnswer
in class Session
ans
- the answer message that has been receivedIOException
- if an error occured while processing the answerDiameterException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Session
IOException
public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Session
IOException
ClassNotFoundException