|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wcp.diameter.Session
com.bea.wcp.diameter.accounting.ClientSession
public class ClientSession
Client accounting session implementing the client accounting state machine described in RFC 3588 section 8.2. This session can be used to create and send new ACR accounting requests, and receive corresponding ACA answer messages. The current session state is based on the accounting record type of the previously created request. For an EVENT ACR, the session will be terminated (removed from the Diameter session map) as soon as the corresponding EVENT ACA message is received. Likewise, after STOP ACR is sent, the session will be terminated as soon as the corresponding STOP ACA message is received.
Constructor Summary | |
---|---|
ClientSession(Application app) Creates a new ClientSession for the specified application. |
Method Summary | |
---|---|
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) message for this session. |
void |
sndMessage(Message msg) Called by container just before a new ACR or ACA message has been sent out. |
Methods inherited from class com.bea.wcp.diameter.Session |
---|
appendXml, createRequest, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvMessage, rcvRequest, removeAttribute, setAttribute, setListener, terminate, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientSession(Application app)
Method Detail |
---|
public ACR createACR(RecordType type)
type
- the accounting RecordType for the requestjava.lang.IllegalStateException
- 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 java.io.IOException
sndMessage
in class Session
msg
- the ACR/ACA message being sent outjava.io.IOException
- if the message could not be sentjava.lang.IllegalStateException
- 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, java.io.IOException
rcvAnswer
in class Session
ans
- the ACA messageDiameterException
- if a Diameter protocol error occurredjava.io.IOException
- if an I/O error occurred while processing the message
|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |