org.jdiameter.api.ro
Interface ServerRoSessionListener


public interface ServerRoSessionListener

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

Author:
Bartosz Baranowski , Alexandre Mendonca

Method Summary
 void doCreditControlRequest(ServerRoSession session, RoCreditControlRequest request)
          Notifies this ServerRoSessionListener that the ServerRoSession has received a CCR 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.
 void doReAuthAnswer(ServerRoSession session, ReAuthRequest request, ReAuthAnswer answer)
          Notifies this ServerRoSessionListener that the ServerRoSession has received a RAA message.
 

Method Detail

doCreditControlRequest

void doCreditControlRequest(ServerRoSession session,
                            RoCreditControlRequest 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.

doReAuthAnswer

void doReAuthAnswer(ServerRoSession session,
                    ReAuthRequest request,
                    ReAuthAnswer 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 © 2010. All Rights Reserved.