org.jdiameter.common.impl.app.cxdx.test
Class Client

java.lang.Object
  extended by org.jdiameter.common.impl.app.cxdx.test.SessionFactoryCXDX
      extended by org.jdiameter.common.impl.app.cxdx.test.Client
All Implemented Interfaces:
org.jdiameter.api.app.StateChangeListener, org.jdiameter.api.cxdx.ClientCxDxSessionListener, org.jdiameter.api.cxdx.ServerCxDxSessionListener, org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer>, org.jdiameter.api.NetworkReqListener, ICxDxMessageFactory, IAppSessionFactory

public class Client
extends SessionFactoryCXDX
implements org.jdiameter.api.NetworkReqListener, org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer>

Start time:14:34:26 2009-08-19
Project: diameter-parent-release

Author:
Bartosz Baranowski

Field Summary
 
Fields inherited from class org.jdiameter.common.impl.app.cxdx.test.SessionFactoryCXDX
logger, sessionFactory
 
Constructor Summary
Client()
           
 
Method Summary
 void doLocationInformationAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session, org.jdiameter.api.cxdx.events.JLocationInfoRequest request, org.jdiameter.api.cxdx.events.JLocationInfoAnswer answer)
           
 void doLocationInformationRequest(org.jdiameter.api.cxdx.ServerCxDxSession session, org.jdiameter.api.cxdx.events.JLocationInfoRequest request)
           
 void doMultimediaAuthAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session, org.jdiameter.api.cxdx.events.JMultimediaAuthRequest request, org.jdiameter.api.cxdx.events.JMultimediaAuthAnswer answer)
           
 void doMultimediaAuthRequest(org.jdiameter.api.cxdx.ServerCxDxSession session, org.jdiameter.api.cxdx.events.JMultimediaAuthRequest request)
           
 void doOtherEvent(org.jdiameter.api.app.AppSession session, org.jdiameter.api.app.AppRequestEvent request, org.jdiameter.api.app.AppAnswerEvent answer)
           
 void doPushProfileAnswer(org.jdiameter.api.cxdx.ServerCxDxSession session, org.jdiameter.api.cxdx.events.JPushProfileRequest request, org.jdiameter.api.cxdx.events.JPushProfileAnswer answer)
           
 void doPushProfileRequest(org.jdiameter.api.cxdx.ClientCxDxSession session, org.jdiameter.api.cxdx.events.JPushProfileRequest request)
           
 void doRegistrationTerminationAnswer(org.jdiameter.api.cxdx.ServerCxDxSession session, org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest request, org.jdiameter.api.cxdx.events.JRegistrationTerminationAnswer answer)
           
 void doRegistrationTerminationRequest(org.jdiameter.api.cxdx.ClientCxDxSession session, org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest request)
           
 void doServerAssignmentAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session, org.jdiameter.api.cxdx.events.JServerAssignmentRequest request, org.jdiameter.api.cxdx.events.JServerAssignmentAnswer answer)
           
 void doServerAssignmentRequest(org.jdiameter.api.cxdx.ServerCxDxSession session, org.jdiameter.api.cxdx.events.JServerAssignmentRequest request)
           
 void doUserAuthorizationAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session, org.jdiameter.api.cxdx.events.JUserAuthorizationRequest request, org.jdiameter.api.cxdx.events.JUserAuthorizationAnswer answer)
           
 void doUserAuthorizationRequest(org.jdiameter.api.cxdx.ServerCxDxSession session, org.jdiameter.api.cxdx.events.JUserAuthorizationRequest request)
           
static void main(java.lang.String[] args)
           
 org.jdiameter.api.Answer processRequest(org.jdiameter.api.Request request)
           
 void receivedSuccessMessage(org.jdiameter.api.Request request, org.jdiameter.api.Answer answer)
           
 void timeoutExpired(org.jdiameter.api.Request request)
           
 
Methods inherited from class org.jdiameter.common.impl.app.cxdx.test.SessionFactoryCXDX
createLocationInfoAnswer, createLocationInfoRequest, createMultimediaAuthAnswer, createMultimediaAuthRequest, createPushProfileAnswer, createPushProfileRequest, createRegistrationTerminationAnswer, createRegistrationTerminationRequest, createServerAssignmentAnswer, createServerAssignmentRequest, createUserAuthorizationAnswer, createUserAuthorizationRequest, getApplicationId, getApplicationIds, getNewSession, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client()
       throws java.io.IOException
Parameters:
sessionFactory -
Throws:
java.io.IOException
Method Detail

processRequest

public org.jdiameter.api.Answer processRequest(org.jdiameter.api.Request request)
Specified by:
processRequest in interface org.jdiameter.api.NetworkReqListener

doLocationInformationAnswer

public void doLocationInformationAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session,
                                        org.jdiameter.api.cxdx.events.JLocationInfoRequest request,
                                        org.jdiameter.api.cxdx.events.JLocationInfoAnswer answer)
                                 throws org.jdiameter.api.InternalException,
                                        org.jdiameter.api.IllegalDiameterStateException,
                                        org.jdiameter.api.RouteException,
                                        org.jdiameter.api.OverloadException
Specified by:
doLocationInformationAnswer in interface org.jdiameter.api.cxdx.ClientCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doMultimediaAuthAnswer

public void doMultimediaAuthAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session,
                                   org.jdiameter.api.cxdx.events.JMultimediaAuthRequest request,
                                   org.jdiameter.api.cxdx.events.JMultimediaAuthAnswer answer)
                            throws org.jdiameter.api.InternalException,
                                   org.jdiameter.api.IllegalDiameterStateException,
                                   org.jdiameter.api.RouteException,
                                   org.jdiameter.api.OverloadException
Specified by:
doMultimediaAuthAnswer in interface org.jdiameter.api.cxdx.ClientCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doOtherEvent

public void doOtherEvent(org.jdiameter.api.app.AppSession session,
                         org.jdiameter.api.app.AppRequestEvent request,
                         org.jdiameter.api.app.AppAnswerEvent answer)
                  throws org.jdiameter.api.InternalException,
                         org.jdiameter.api.IllegalDiameterStateException,
                         org.jdiameter.api.RouteException,
                         org.jdiameter.api.OverloadException
Specified by:
doOtherEvent in interface org.jdiameter.api.cxdx.ClientCxDxSessionListener
Specified by:
doOtherEvent in interface org.jdiameter.api.cxdx.ServerCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doPushProfileRequest

public void doPushProfileRequest(org.jdiameter.api.cxdx.ClientCxDxSession session,
                                 org.jdiameter.api.cxdx.events.JPushProfileRequest request)
                          throws org.jdiameter.api.InternalException,
                                 org.jdiameter.api.IllegalDiameterStateException,
                                 org.jdiameter.api.RouteException,
                                 org.jdiameter.api.OverloadException
Specified by:
doPushProfileRequest in interface org.jdiameter.api.cxdx.ClientCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doRegistrationTerminationRequest

public void doRegistrationTerminationRequest(org.jdiameter.api.cxdx.ClientCxDxSession session,
                                             org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest request)
                                      throws org.jdiameter.api.InternalException,
                                             org.jdiameter.api.IllegalDiameterStateException,
                                             org.jdiameter.api.RouteException,
                                             org.jdiameter.api.OverloadException
Specified by:
doRegistrationTerminationRequest in interface org.jdiameter.api.cxdx.ClientCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doServerAssignmentAnswer

public void doServerAssignmentAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session,
                                     org.jdiameter.api.cxdx.events.JServerAssignmentRequest request,
                                     org.jdiameter.api.cxdx.events.JServerAssignmentAnswer answer)
                              throws org.jdiameter.api.InternalException,
                                     org.jdiameter.api.IllegalDiameterStateException,
                                     org.jdiameter.api.RouteException,
                                     org.jdiameter.api.OverloadException
Specified by:
doServerAssignmentAnswer in interface org.jdiameter.api.cxdx.ClientCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doUserAuthorizationAnswer

public void doUserAuthorizationAnswer(org.jdiameter.api.cxdx.ClientCxDxSession session,
                                      org.jdiameter.api.cxdx.events.JUserAuthorizationRequest request,
                                      org.jdiameter.api.cxdx.events.JUserAuthorizationAnswer answer)
                               throws org.jdiameter.api.InternalException,
                                      org.jdiameter.api.IllegalDiameterStateException,
                                      org.jdiameter.api.RouteException,
                                      org.jdiameter.api.OverloadException
Specified by:
doUserAuthorizationAnswer in interface org.jdiameter.api.cxdx.ClientCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doLocationInformationRequest

public void doLocationInformationRequest(org.jdiameter.api.cxdx.ServerCxDxSession session,
                                         org.jdiameter.api.cxdx.events.JLocationInfoRequest request)
                                  throws org.jdiameter.api.InternalException,
                                         org.jdiameter.api.IllegalDiameterStateException,
                                         org.jdiameter.api.RouteException,
                                         org.jdiameter.api.OverloadException
Specified by:
doLocationInformationRequest in interface org.jdiameter.api.cxdx.ServerCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doMultimediaAuthRequest

public void doMultimediaAuthRequest(org.jdiameter.api.cxdx.ServerCxDxSession session,
                                    org.jdiameter.api.cxdx.events.JMultimediaAuthRequest request)
                             throws org.jdiameter.api.InternalException,
                                    org.jdiameter.api.IllegalDiameterStateException,
                                    org.jdiameter.api.RouteException,
                                    org.jdiameter.api.OverloadException
Specified by:
doMultimediaAuthRequest in interface org.jdiameter.api.cxdx.ServerCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doPushProfileAnswer

public void doPushProfileAnswer(org.jdiameter.api.cxdx.ServerCxDxSession session,
                                org.jdiameter.api.cxdx.events.JPushProfileRequest request,
                                org.jdiameter.api.cxdx.events.JPushProfileAnswer answer)
                         throws org.jdiameter.api.InternalException,
                                org.jdiameter.api.IllegalDiameterStateException,
                                org.jdiameter.api.RouteException,
                                org.jdiameter.api.OverloadException
Specified by:
doPushProfileAnswer in interface org.jdiameter.api.cxdx.ServerCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doRegistrationTerminationAnswer

public void doRegistrationTerminationAnswer(org.jdiameter.api.cxdx.ServerCxDxSession session,
                                            org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest request,
                                            org.jdiameter.api.cxdx.events.JRegistrationTerminationAnswer answer)
                                     throws org.jdiameter.api.InternalException,
                                            org.jdiameter.api.IllegalDiameterStateException,
                                            org.jdiameter.api.RouteException,
                                            org.jdiameter.api.OverloadException
Specified by:
doRegistrationTerminationAnswer in interface org.jdiameter.api.cxdx.ServerCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doServerAssignmentRequest

public void doServerAssignmentRequest(org.jdiameter.api.cxdx.ServerCxDxSession session,
                                      org.jdiameter.api.cxdx.events.JServerAssignmentRequest request)
                               throws org.jdiameter.api.InternalException,
                                      org.jdiameter.api.IllegalDiameterStateException,
                                      org.jdiameter.api.RouteException,
                                      org.jdiameter.api.OverloadException
Specified by:
doServerAssignmentRequest in interface org.jdiameter.api.cxdx.ServerCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doUserAuthorizationRequest

public void doUserAuthorizationRequest(org.jdiameter.api.cxdx.ServerCxDxSession session,
                                       org.jdiameter.api.cxdx.events.JUserAuthorizationRequest request)
                                throws org.jdiameter.api.InternalException,
                                       org.jdiameter.api.IllegalDiameterStateException,
                                       org.jdiameter.api.RouteException,
                                       org.jdiameter.api.OverloadException
Specified by:
doUserAuthorizationRequest in interface org.jdiameter.api.cxdx.ServerCxDxSessionListener
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

receivedSuccessMessage

public void receivedSuccessMessage(org.jdiameter.api.Request request,
                                   org.jdiameter.api.Answer answer)
Specified by:
receivedSuccessMessage in interface org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer>

timeoutExpired

public void timeoutExpired(org.jdiameter.api.Request request)
Specified by:
timeoutExpired in interface org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer>

main

public static void main(java.lang.String[] args)


Copyright © 2010. All Rights Reserved.