org.jdiameter.api.gx
Interface ClientGxSession

All Superinterfaces:
AppSession, BaseSession, StateMachine

public interface ClientGxSession
extends AppSession, StateMachine

Basic class for Gx client credit-control application specific session. Listener must be injected from constructor of implementation class.

Author:
Carl-Magnus Björkell

Method Summary
 void sendCreditControlRequest(GxCreditControlRequest request)
          Send credit-control request to server.
 void sendGxReAuthAnswer(GxReAuthAnswer answer)
          Send re-authentication answer to server
 
Methods inherited from interface org.jdiameter.api.app.AppSession
getSessionAppId, getSessions, isStateless
 
Methods inherited from interface org.jdiameter.api.BaseSession
getCreationTime, getLastAccessedTime, getSessionId, isAppSession, isReplicable, isValid, release
 
Methods inherited from interface org.jdiameter.api.app.StateMachine
addStateChangeNotification, getState, handleEvent, removeStateChangeNotification
 

Method Detail

sendCreditControlRequest

void sendCreditControlRequest(GxCreditControlRequest request)
                              throws InternalException,
                                     IllegalDiameterStateException,
                                     RouteException,
                                     OverloadException
Send credit-control request to server.

Parameters:
request - Credit-Control-Request event instance
Throws:
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.

sendGxReAuthAnswer

void sendGxReAuthAnswer(GxReAuthAnswer answer)
                        throws InternalException,
                               IllegalDiameterStateException,
                               RouteException,
                               OverloadException
Send re-authentication answer to server

Parameters:
answer - Re-Auth-Answer event instance
Throws:
InternalException - The InternalException signals that internal error is occurred.
IllegalDiameterStateException - The IllegalStateException signals that session has incorrect state (invalid).
RouteException - The NoRouteException signals that no route exist for a given realm.
OverloadException - The OverloadException signals that destination host is overloaded.


Copyright © 2013. All Rights Reserved.