org.jdiameter.server.impl.app.cxdx
Class CxDxServerSessionImpl

java.lang.Object
  extended by org.jdiameter.common.impl.app.AppSessionImpl
      extended by org.jdiameter.common.impl.app.cxdx.CxDxSession
          extended by org.jdiameter.server.impl.app.cxdx.CxDxServerSessionImpl
All Implemented Interfaces:
java.io.Serializable, org.jdiameter.api.app.AppSession, org.jdiameter.api.app.StateMachine, org.jdiameter.api.cxdx.ServerCxDxSession, org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer>, org.jdiameter.api.NetworkReqListener

public class CxDxServerSessionImpl
extends CxDxSession
implements org.jdiameter.api.cxdx.ServerCxDxSession, org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer>, org.jdiameter.api.NetworkReqListener

Start time:19:57:44 2009-08-17
Project: diameter-parent

Author:
Bartosz Baranowski , Alexandre Mendonca
See Also:
Serialized Form

Field Summary
protected  long appId
           
 
Fields inherited from class org.jdiameter.common.impl.app.cxdx.CxDxSession
_TX_TIMEOUT, messageFactory, scheduler, sendAndStateLock, sf, state, stateListeners, timeoutTaskFuture
 
Fields inherited from class org.jdiameter.common.impl.app.AppSessionImpl
session
 
Constructor Summary
CxDxServerSessionImpl(ICxDxMessageFactory fct, org.jdiameter.api.SessionFactory sf, org.jdiameter.api.cxdx.ServerCxDxSessionListener lst)
           
CxDxServerSessionImpl(java.lang.String sessionId, ICxDxMessageFactory fct, org.jdiameter.api.SessionFactory sf, org.jdiameter.api.cxdx.ServerCxDxSessionListener lst)
           
 
Method Summary
<E> E
getState(java.lang.Class<E> stateType)
           
 boolean handleEvent(org.jdiameter.api.app.StateEvent event)
           
 org.jdiameter.api.Answer processRequest(org.jdiameter.api.Request request)
           
 void receivedSuccessMessage(org.jdiameter.api.Request request, org.jdiameter.api.Answer answer)
           
protected  void send(org.jdiameter.server.impl.app.cxdx.Event.Type type, org.jdiameter.api.app.AppEvent request, org.jdiameter.api.app.AppEvent answer)
           
 void sendLocationInformationAnswer(org.jdiameter.api.cxdx.events.JLocationInfoAnswer answer)
           
 void sendMultimediaAuthAnswer(org.jdiameter.api.cxdx.events.JMultimediaAuthAnswer answer)
           
 void sendPushProfileRequest(org.jdiameter.api.cxdx.events.JPushProfileRequest request)
           
 void sendRegistrationTerminationRequest(org.jdiameter.api.cxdx.events.JRegistrationTerminationRequest request)
           
 void sendServerAssignmentAnswer(org.jdiameter.api.cxdx.events.JServerAssignmentAnswer answer)
           
 void sendUserAuthorizationAnswer(org.jdiameter.api.cxdx.events.JUserAuthorizationAnswer answer)
           
protected  void setState(CxDxSessionState newState)
           
 void timeoutExpired(org.jdiameter.api.Request request)
           
 
Methods inherited from class org.jdiameter.common.impl.app.cxdx.CxDxSession
addStateChangeNotification, isStateless, removeStateChangeNotification
 
Methods inherited from class org.jdiameter.common.impl.app.AppSessionImpl
getCreationTime, getLastAccessedTime, getSessionAppId, getSessions, isValid, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jdiameter.api.app.AppSession
getCreationTime, getLastAccessedTime, getSessionAppId, getSessions, isStateless, isValid, release
 
Methods inherited from interface org.jdiameter.api.app.StateMachine
addStateChangeNotification, removeStateChangeNotification
 

Field Detail

appId

protected long appId
Constructor Detail

CxDxServerSessionImpl

public CxDxServerSessionImpl(ICxDxMessageFactory fct,
                             org.jdiameter.api.SessionFactory sf,
                             org.jdiameter.api.cxdx.ServerCxDxSessionListener lst)

CxDxServerSessionImpl

public CxDxServerSessionImpl(java.lang.String sessionId,
                             ICxDxMessageFactory fct,
                             org.jdiameter.api.SessionFactory sf,
                             org.jdiameter.api.cxdx.ServerCxDxSessionListener lst)
Method Detail

sendLocationInformationAnswer

public void sendLocationInformationAnswer(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:
sendLocationInformationAnswer in interface org.jdiameter.api.cxdx.ServerCxDxSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

sendMultimediaAuthAnswer

public void sendMultimediaAuthAnswer(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:
sendMultimediaAuthAnswer in interface org.jdiameter.api.cxdx.ServerCxDxSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

sendServerAssignmentAnswer

public void sendServerAssignmentAnswer(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:
sendServerAssignmentAnswer in interface org.jdiameter.api.cxdx.ServerCxDxSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

sendUserAuthorizationAnswer

public void sendUserAuthorizationAnswer(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:
sendUserAuthorizationAnswer in interface org.jdiameter.api.cxdx.ServerCxDxSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

sendPushProfileRequest

public void sendPushProfileRequest(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:
sendPushProfileRequest in interface org.jdiameter.api.cxdx.ServerCxDxSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

sendRegistrationTerminationRequest

public void sendRegistrationTerminationRequest(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:
sendRegistrationTerminationRequest in interface org.jdiameter.api.cxdx.ServerCxDxSession
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

getState

public <E> E getState(java.lang.Class<E> stateType)
Specified by:
getState in interface org.jdiameter.api.app.StateMachine

handleEvent

public boolean handleEvent(org.jdiameter.api.app.StateEvent event)
                    throws org.jdiameter.api.InternalException,
                           org.jdiameter.api.OverloadException
Specified by:
handleEvent in interface org.jdiameter.api.app.StateMachine
Throws:
org.jdiameter.api.InternalException
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>

processRequest

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

send

protected void send(org.jdiameter.server.impl.app.cxdx.Event.Type type,
                    org.jdiameter.api.app.AppEvent request,
                    org.jdiameter.api.app.AppEvent answer)
             throws org.jdiameter.api.InternalException
Throws:
org.jdiameter.api.InternalException

setState

protected void setState(CxDxSessionState newState)


Copyright © 2010. All Rights Reserved.