Oracle Corp.

Oracle WebLogic Communications Server 10.1 API Reference


com.bea.wcp.diameter.cc
Class ClientSession

java.lang.Object
  extended bycom.bea.wcp.diameter.Session
      extended bycom.bea.wcp.diameter.cc.ClientSession
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RoSession

public class ClientSession
extends Session

Diameter credit control application client session. See RFC 4006 for details.

See Also:
Serialized Form
Copyright © 2008 Oracle Corp. All Rights Reserved.

Constructor Summary
ClientSession(Application app)
          Creates a new ClientSession for the specified application.
 
Method Summary
 CCR createCCR(RequestType type)
          Creates a new credit-control request (CCR) for the specified request type.
 void rcvAnswer(Answer ans)
          Receives credit-control answer (CCA) message for this session.
 void rcvRequest(Request req)
          Called by the container when a new request has been received.
 void sndMessage(Message msg)
          Called by the container just before a CCR/CCA message has been sent.
 
Methods inherited from class com.bea.wcp.diameter.Session
createRequest, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvMessage, removeAttribute, setAttribute, setListener, terminate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientSession

public ClientSession(Application app)
Creates a new ClientSession for the specified application.

Method Detail

createCCR

public CCR createCCR(RequestType type)
Creates a new credit-control request (CCR) for the specified request type.

Parameters:
type - the credit-control request type
Returns:
the new CCR for this session

rcvAnswer

public void rcvAnswer(Answer ans)
               throws DiameterException,
                      java.io.IOException
Receives credit-control answer (CCA) message for this session. The session state will be updated according to the CCA request number and type. If the CCA request type is EVENT or TERMINATION, then the session will be automatically terminated.

Overrides:
rcvAnswer in class Session
Parameters:
ans - the CCA message
Throws:
DiameterException - if a protocol error has occurred
java.io.IOException - if an I/O error has occurred

rcvRequest

public void rcvRequest(Request req)
                throws DiameterException,
                       java.io.IOException
Called by the container when a new request has been received. Provides handling for ACR requests sent by the server which are then optionally delivered to a session listener if configured for handling.

Overrides:
rcvRequest in class Session
Parameters:
req - the request being received
Throws:
DiameterException - if a protocol error has occurred
java.io.IOException - if an I/O error has occurred

sndMessage

public void sndMessage(Message msg)
                throws java.io.IOException
Called by the container just before a CCR/CCA message has been sent. Updates the current credit-control state machine accordingly.

Overrides:
sndMessage in class Session
Parameters:
msg - the CCR/CCA message to be sent
Throws:
java.io.IOException - if an I/O error occurred while sending the message
java.lang.IllegalStateException - if the session is terminated, a request is pending, or a request is out of sequence (invalid request number)

Documentation is available at
http://e-docs.bea.com/wlcp/wlss40/
Copyright 2008 Oracle Corp.