org.jdiameter.api.gx
Interface ServerGxSessionListener


public interface ServerGxSessionListener

This interface defines the possible actions for the different states in the server Credit-Control Application state machine.

Author:
Carl-Magnus Björkell

Method Summary
 void doCreditControlRequest(ServerGxSession session, GxCreditControlRequest request)
          Notifies this ServerRoSessionListener that the ServerRoSession has received a CCR message.
 void doGxReAuthAnswer(ServerGxSession session, GxReAuthRequest request, GxReAuthAnswer answer)
          Notifies this ServerRoSessionListener that the ServerRoSession has received a RAA message.
 void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer)
          Notifies this ServerRoSessionListener that the ServerRoSession has received not Ro message, now it can be even RAA.
 

Method Detail

doCreditControlRequest

void doCreditControlRequest(ServerGxSession session,
                            GxCreditControlRequest request)
                            throws InternalException,
                                   IllegalDiameterStateException,
                                   RouteException,
                                   OverloadException
Notifies this ServerRoSessionListener that the ServerRoSession has received a CCR message.

Parameters:
session - parent application session (FSM)
request - request object
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.

doGxReAuthAnswer

void doGxReAuthAnswer(ServerGxSession session,
                      GxReAuthRequest request,
                      GxReAuthAnswer answer)
                      throws InternalException,
                             IllegalDiameterStateException,
                             RouteException,
                             OverloadException
Notifies this ServerRoSessionListener that the ServerRoSession has received a RAA message.

Parameters:
session - parent application session (FSM)
request - request object
answer - answer object
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.

doOtherEvent

void doOtherEvent(AppSession session,
                  AppRequestEvent request,
                  AppAnswerEvent answer)
                  throws InternalException,
                         IllegalDiameterStateException,
                         RouteException,
                         OverloadException
Notifies this ServerRoSessionListener that the ServerRoSession has received not Ro message, now it can be even RAA.

Parameters:
session - parent application session (FSM)
request - request object
answer - answer object
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.