org.jdiameter.api.ro
Interface ClientRoSessionListener


public interface ClientRoSessionListener

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

Author:
Bartosz Baranowski , Alexandre Mendonca

Method Summary
 void doCreditControlAnswer(ClientRoSession session, RoCreditControlRequest request, RoCreditControlAnswer answer)
          Notifies this ClientRoSessionListener that the ClientRoSession has received a Ro message.
 void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer)
          Notifies this ClientRoSessionListener that the ClientRoSession has received a non Ro message, usually some extension.
 void doReAuthRequest(ClientRoSession session, ReAuthRequest request)
          Notifies this ClientRoSessionListener that the ClientRoSession has received a RAR message.
 int getDefaultCCFHValue()
          Provides with default value of CCFH AVP - this is used when AVP is not present or send operation fails for some reason.
 int getDefaultDDFHValue()
          Provides with default value of DDFH AVP - this is used when AVP is not present or send operation fails for some reason.
 

Method Detail

doCreditControlAnswer

void doCreditControlAnswer(ClientRoSession session,
                           RoCreditControlRequest request,
                           RoCreditControlAnswer answer)
                           throws InternalException,
                                  IllegalDiameterStateException,
                                  RouteException,
                                  OverloadException
Notifies this ClientRoSessionListener that the ClientRoSession has received a Ro message.

Parameters:
session - parent application session (FSM)
request - request object
answer - answer object
Throws:
InternalException - The InternalException signals that internal error has 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.

doReAuthRequest

void doReAuthRequest(ClientRoSession session,
                     ReAuthRequest request)
                     throws InternalException,
                            IllegalDiameterStateException,
                            RouteException,
                            OverloadException
Notifies this ClientRoSessionListener that the ClientRoSession has received a RAR message.

Parameters:
session - parent application session (FSM)
request - request object
Throws:
InternalException - The InternalException signals that internal error has 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 ClientRoSessionListener that the ClientRoSession has received a non Ro message, usually some extension.

Parameters:
session - parent application session (FSM)
request - request object
answer - answer object
Throws:
InternalException - The InternalException signals that internal error has 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.

getDefaultDDFHValue

int getDefaultDDFHValue()
Provides with default value of DDFH AVP - this is used when AVP is not present or send operation fails for some reason.
DDFH is of type Enumerated - int32

Returns:

getDefaultCCFHValue

int getDefaultCCFHValue()
Provides with default value of CCFH AVP - this is used when AVP is not present or send operation fails for some reason.
CCFH is of type Enumerated - int32

Returns:


Copyright © 2010. All Rights Reserved.