public class CxDxServerSessionImpl extends CxDxSession implements ServerCxDxSession, EventListener<Request,Answer>, NetworkReqListener
| Modifier and Type | Field and Description |
|---|---|
protected long |
appId |
protected IServerCxDxSessionData |
sessionData |
_TX_TIMEOUT, messageFactory, sendAndStateLock, stateListeners, TIMER_NAME_MSG_TIMEOUTappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
CxDxServerSessionImpl(IServerCxDxSessionData sessionData,
ICxDxMessageFactory fct,
ISessionFactory sf,
ServerCxDxSessionListener lst) |
| Modifier and Type | Method and Description |
|---|---|
<E> E |
getState(Class<E> stateType) |
boolean |
handleEvent(StateEvent event) |
void |
onTimer(String timerName) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
protected void |
send(org.jdiameter.server.impl.app.cxdx.Event.Type type,
AppEvent request,
AppEvent answer) |
void |
sendLocationInformationAnswer(JLocationInfoAnswer answer) |
void |
sendMultimediaAuthAnswer(JMultimediaAuthAnswer answer) |
void |
sendPushProfileRequest(JPushProfileRequest request) |
void |
sendRegistrationTerminationRequest(JRegistrationTerminationRequest request) |
void |
sendServerAssignmentAnswer(JServerAssignmentAnswer answer) |
void |
sendUserAuthorizationAnswer(JUserAuthorizationAnswer answer) |
protected void |
setState(CxDxSessionState newState) |
void |
timeoutExpired(Request request) |
addStateChangeNotification, cancelMsgTimer, equals, hashCode, isReplicable, isStateless, removeStateChangeNotification, startMsgTimergetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessions, isStatelessgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isReplicable, isValidaddStateChangeNotification, removeStateChangeNotificationprotected long appId
protected IServerCxDxSessionData sessionData
public CxDxServerSessionImpl(IServerCxDxSessionData sessionData, ICxDxMessageFactory fct, ISessionFactory sf, ServerCxDxSessionListener lst)
public void sendLocationInformationAnswer(JLocationInfoAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendLocationInformationAnswer in interface ServerCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendMultimediaAuthAnswer(JMultimediaAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendMultimediaAuthAnswer in interface ServerCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendServerAssignmentAnswer(JServerAssignmentAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendServerAssignmentAnswer in interface ServerCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendUserAuthorizationAnswer(JUserAuthorizationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendUserAuthorizationAnswer in interface ServerCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendPushProfileRequest(JPushProfileRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendPushProfileRequest in interface ServerCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendRegistrationTerminationRequest(JRegistrationTerminationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendRegistrationTerminationRequest in interface ServerCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic <E> E getState(Class<E> stateType)
getState in interface StateMachinepublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionpublic void release()
release in interface BaseSessionrelease in class CxDxSessionpublic void receivedSuccessMessage(Request request, Answer answer)
receivedSuccessMessage in interface EventListener<Request,Answer>public void timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>public Answer processRequest(Request request)
processRequest in interface NetworkReqListenerprotected void send(org.jdiameter.server.impl.app.cxdx.Event.Type type,
AppEvent request,
AppEvent answer)
throws InternalException
InternalExceptionprotected void setState(CxDxSessionState newState)
public void onTimer(String timerName)
onTimer in class AppSessionImplCopyright © 2016. All Rights Reserved.