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,
Object parent) |
| Modifier and Type | Method and Description |
|---|---|
ACR |
createACR(RecordType type)
Creates a new accounting request (ACR) for the specified accounting
record type.
|
protected void |
rcvAnswer(Answer ans)
Receives accounting answer (ACA) messages for this session.
|
void |
readExternal(ObjectInput is) |
void |
sndMessage(Message msg)
Called by the container just before a new ACR or ACA message has been sent
out.
|
void |
writeExternal(ObjectOutput out) |
appendXml, createRequest, getAdapter, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvMessage, rcvRequest, removeAttribute, setAdapter, setAttribute, setListener, terminate, toStringpublic ClientSession()
public ClientSession(Application app)
public ClientSession(Application app, String id, Object parent)
public ACR createACR(RecordType type)
type - the accounting RecordType for the requestIllegalStateException - if the session is terminated, a request is
currently pending, or the specified RequestType is not valid for
the current session statepublic void sndMessage(Message msg) throws IOException
sndMessage in class Sessionmsg - the ACR/ACA message being sent outIOException - if the message could not be sentIllegalStateException - if the session has been terminated, a
request is already pending, or a request is out of sequence
(invalid record number)protected void rcvAnswer(Answer ans) throws DiameterException, IOException
rcvAnswer in class Sessionans - the ACA messageDiameterException - if a Diameter protocol error occurredIOException - if an I/O error occurred while processing the messagepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SessionIOExceptionpublic void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SessionIOExceptionClassNotFoundException