org.jdiameter.api.cca
Interface ClientCCASessionListener


public interface ClientCCASessionListener

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(ClientCCASession session, JCreditControlRequest request, JCreditControlAnswer answer)
          Notifies this ClientCCASessionListener that the ClientCCASession has received a CCA message.
 void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer)
          Notifies this ClientCCASessionListener that the ClientCCASession has received a non CCA message, usually some extension.
 void doReAuthRequest(ClientCCASession session, ReAuthRequest request)
          Notifies this ClientCCASessionListener that the ClientCCASession 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(ClientCCASession session,
                           JCreditControlRequest request,
                           JCreditControlAnswer answer)
                           throws InternalException,
                                  IllegalDiameterStateException,
                                  RouteException,
                                  OverloadException
Notifies this ClientCCASessionListener that the ClientCCASession has received a CCA 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(ClientCCASession session,
                     ReAuthRequest request)
                     throws InternalException,
                            IllegalDiameterStateException,
                            RouteException,
                            OverloadException
Notifies this ClientCCASessionListener that the ClientCCASession 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 ClientCCASessionListener that the ClientCCASession has received a non CCA 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.