public class ClientSession extends Session
Constructor and Description |
---|
ClientSession()
Used by Externalizable.
|
ClientSession(Application app)
Creates a new ClientSession for the specified application.
|
ClientSession(Application app,
String id) |
ClientSession(Application app,
String id,
Object parent) |
Modifier and Type | Method and Description |
---|---|
CCR |
createCCR(RequestType type)
Creates a new credit-control request (CCR) for the specified request
type.
|
void |
rcvAnswer(Answer ans)
Receives a credit-control answer (CCA) message for this session.
|
void |
rcvRequest(Request req)
Called by the container when a new request has been received.
|
void |
readExternal(ObjectInput is) |
void |
sndMessage(Message msg)
Called by the container just before a CCR/CCA message has been sent.
|
void |
writeExternal(ObjectOutput out) |
appendXml, createRequest, getAdapter, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvMessage, removeAttribute, setAdapter, setAttribute, setListener, terminate, toString
public ClientSession()
public ClientSession(Application app)
public ClientSession(Application app, String id)
public ClientSession(Application app, String id, Object parent)
public CCR createCCR(RequestType type)
type
- the credit-control request typepublic void sndMessage(Message msg) throws IOException
sndMessage
in class Session
msg
- the CCR/CCA message to be sentIOException
- if an I/O error occurred while sending the messageIllegalStateException
- if the session is terminated, a request
is pending, or a request is out of sequence (invalid request
number)public void rcvRequest(Request req) throws DiameterException, IOException
rcvRequest
in class Session
req
- the request being receivedDiameterException
- if a protocol error has occurredIOException
- if an I/O error has occurredpublic void rcvAnswer(Answer ans) throws DiameterException, IOException
rcvAnswer
in class Session
ans
- the CCA messageDiameterException
- if a protocol error has occurredIOException
- if an I/O error has occurredpublic 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