public class CxDxClientSessionImpl extends CxDxSession implements ClientCxDxSession, EventListener<Request,Answer>, NetworkReqListener
| Modifier and Type | Field and Description |
|---|---|
protected long |
appId |
protected IClientCxDxSessionData |
sessionData |
_TX_TIMEOUT, messageFactory, sendAndStateLock, stateListeners, TIMER_NAME_MSG_TIMEOUTappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
CxDxClientSessionImpl(IClientCxDxSessionData sessionData,
ICxDxMessageFactory fct,
ISessionFactory sf,
ClientCxDxSessionListener lst) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<E> E |
getState(Class<E> stateType) |
boolean |
handleEvent(StateEvent event) |
int |
hashCode() |
void |
onTimer(String timerName) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
protected void |
send(org.jdiameter.client.impl.app.cxdx.Event.Type type,
AppEvent request,
AppEvent answer) |
void |
sendLocationInformationRequest(JLocationInfoRequest request) |
void |
sendMultimediaAuthRequest(JMultimediaAuthRequest request) |
void |
sendPushProfileAnswer(JPushProfileAnswer answer) |
void |
sendRegistrationTerminationAnswer(JRegistrationTerminationAnswer answer) |
void |
sendServerAssignmentRequest(JServerAssignmentRequest request) |
void |
sendUserAuthorizationRequest(JUserAuthorizationRequest request) |
protected void |
setState(CxDxSessionState newState) |
void |
timeoutExpired(Request request) |
addStateChangeNotification, cancelMsgTimer, 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 IClientCxDxSessionData sessionData
public CxDxClientSessionImpl(IClientCxDxSessionData sessionData, ICxDxMessageFactory fct, ISessionFactory sf, ClientCxDxSessionListener lst)
public <E> E getState(Class<E> stateType)
getState in interface StateMachinepublic Answer processRequest(Request request)
processRequest in interface NetworkReqListenerpublic void sendLocationInformationRequest(JLocationInfoRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendLocationInformationRequest in interface ClientCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendMultimediaAuthRequest(JMultimediaAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendMultimediaAuthRequest in interface ClientCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendServerAssignmentRequest(JServerAssignmentRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendServerAssignmentRequest in interface ClientCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendUserAuthorizationRequest(JUserAuthorizationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendUserAuthorizationRequest in interface ClientCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendPushProfileAnswer(JPushProfileAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendPushProfileAnswer in interface ClientCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendRegistrationTerminationAnswer(JRegistrationTerminationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendRegistrationTerminationAnswer in interface ClientCxDxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void receivedSuccessMessage(Request request, Answer answer)
receivedSuccessMessage in interface EventListener<Request,Answer>public void timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>protected void send(org.jdiameter.client.impl.app.cxdx.Event.Type type,
AppEvent request,
AppEvent answer)
throws InternalException
InternalExceptionpublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionprotected void setState(CxDxSessionState newState)
public void onTimer(String timerName)
onTimer in class AppSessionImplpublic int hashCode()
hashCode in class CxDxSessionpublic boolean equals(Object obj)
equals in class CxDxSessionpublic void release()
release in interface BaseSessionrelease in class CxDxSessionCopyright © 2016. All Rights Reserved.