org.jdiameter.server.impl.app.cxdx
Class CxDxServerSessionImpl
java.lang.Object
org.jdiameter.common.impl.app.AppSessionImpl
org.jdiameter.common.impl.app.cxdx.CxDxSession
org.jdiameter.server.impl.app.cxdx.CxDxServerSessionImpl
- All Implemented Interfaces:
- java.io.Serializable, AppSession, StateMachine, BaseSession, ServerCxDxSession, EventListener<Request,Answer>, NetworkReqListener
public class CxDxServerSessionImpl
- extends CxDxSession
- implements ServerCxDxSession, EventListener<Request,Answer>, NetworkReqListener
Cx/Dx Server session implementation
- Author:
- Bartosz Baranowski , Alexandre Mendonca
- See Also:
- Serialized Form
|
Field Summary |
protected long |
appId
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
appId
protected long appId
CxDxServerSessionImpl
public CxDxServerSessionImpl(ICxDxMessageFactory fct,
SessionFactory sf,
ServerCxDxSessionListener lst)
CxDxServerSessionImpl
public CxDxServerSessionImpl(java.lang.String sessionId,
ICxDxMessageFactory fct,
SessionFactory sf,
ServerCxDxSessionListener lst)
sendLocationInformationAnswer
public void sendLocationInformationAnswer(JLocationInfoAnswer answer)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendLocationInformationAnswer in interface ServerCxDxSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendMultimediaAuthAnswer
public void sendMultimediaAuthAnswer(JMultimediaAuthAnswer answer)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendMultimediaAuthAnswer in interface ServerCxDxSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendServerAssignmentAnswer
public void sendServerAssignmentAnswer(JServerAssignmentAnswer answer)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendServerAssignmentAnswer in interface ServerCxDxSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendUserAuthorizationAnswer
public void sendUserAuthorizationAnswer(JUserAuthorizationAnswer answer)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendUserAuthorizationAnswer in interface ServerCxDxSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendPushProfileRequest
public void sendPushProfileRequest(JPushProfileRequest request)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendPushProfileRequest in interface ServerCxDxSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendRegistrationTerminationRequest
public void sendRegistrationTerminationRequest(JRegistrationTerminationRequest request)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendRegistrationTerminationRequest in interface ServerCxDxSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
getState
public <E> E getState(java.lang.Class<E> stateType)
- Specified by:
getState in interface StateMachine
handleEvent
public boolean handleEvent(StateEvent event)
throws InternalException,
OverloadException
- Specified by:
handleEvent in interface StateMachine
- Throws:
InternalException
OverloadException
receivedSuccessMessage
public void receivedSuccessMessage(Request request,
Answer answer)
- Specified by:
receivedSuccessMessage in interface EventListener<Request,Answer>
timeoutExpired
public void timeoutExpired(Request request)
- Specified by:
timeoutExpired in interface EventListener<Request,Answer>
relink
public void relink(IContainer stack)
- Overrides:
relink in class CxDxSession
hashCode
public int hashCode()
- Overrides:
hashCode in class CxDxSession
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class CxDxSession
processRequest
public Answer processRequest(Request request)
- Specified by:
processRequest in interface NetworkReqListener
send
protected void send(org.jdiameter.server.impl.app.cxdx.Event.Type type,
AppEvent request,
AppEvent answer)
throws InternalException
- Throws:
InternalException
setState
protected void setState(CxDxSessionState newState)
Copyright © 2010. All Rights Reserved.