public class CxDxSessionFactoryImpl extends Object implements ICxDxSessionFactory, ClientCxDxSessionListener, ServerCxDxSessionListener, ICxDxMessageFactory, StateChangeListener<AppSession>
Modifier and Type | Field and Description |
---|---|
protected ClientCxDxSessionListener |
clientSessionListener |
protected ISessionDatasource |
iss |
protected ICxDxMessageFactory |
messageFactory |
protected ServerCxDxSessionListener |
serverSessionListener |
protected IAppSessionDataFactory<ICxDxSessionData> |
sessionDataFactory |
protected ISessionFactory |
sessionFactory |
protected StateChangeListener<AppSession> |
stateListener |
Constructor and Description |
---|
CxDxSessionFactoryImpl(SessionFactory sessionFactory) |
protected ISessionFactory sessionFactory
protected ClientCxDxSessionListener clientSessionListener
protected ServerCxDxSessionListener serverSessionListener
protected ICxDxMessageFactory messageFactory
protected StateChangeListener<AppSession> stateListener
protected ISessionDatasource iss
protected IAppSessionDataFactory<ICxDxSessionData> sessionDataFactory
public CxDxSessionFactoryImpl(SessionFactory sessionFactory)
public ClientCxDxSessionListener getClientSessionListener()
ICxDxSessionFactory
getClientSessionListener
in interface ICxDxSessionFactory
public void setClientSessionListener(ClientCxDxSessionListener clientSessionListener)
ICxDxSessionFactory
setClientSessionListener
in interface ICxDxSessionFactory
clientSessionListener
- the clientSessionListener to setpublic ServerCxDxSessionListener getServerSessionListener()
ICxDxSessionFactory
getServerSessionListener
in interface ICxDxSessionFactory
public void setServerSessionListener(ServerCxDxSessionListener serverSessionListener)
ICxDxSessionFactory
setServerSessionListener
in interface ICxDxSessionFactory
serverSessionListener
- the serverSessionListener to setpublic ICxDxMessageFactory getMessageFactory()
getMessageFactory
in interface ICxDxSessionFactory
public void setMessageFactory(ICxDxMessageFactory messageFactory)
setMessageFactory
in interface ICxDxSessionFactory
messageFactory
- the messageFactory to setpublic StateChangeListener<AppSession> getStateListener()
getStateListener
in interface ICxDxSessionFactory
public void setStateListener(StateChangeListener<AppSession> stateListener)
setStateListener
in interface ICxDxSessionFactory
stateListener
- the stateListener to setpublic AppSession getSession(String sessionId, Class<? extends AppSession> aClass)
getSession
in interface IAppSessionFactory
public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args)
getNewSession
in interface IAppSessionFactory
public JLocationInfoAnswer createLocationInfoAnswer(Answer answer)
ICxDxMessageFactory
createLocationInfoAnswer
in interface ICxDxMessageFactory
answer
- the answer to create the LIA frompublic JLocationInfoRequest createLocationInfoRequest(Request request)
ICxDxMessageFactory
createLocationInfoRequest
in interface ICxDxMessageFactory
request
- the request to create the LIR frompublic JMultimediaAuthAnswer createMultimediaAuthAnswer(Answer answer)
ICxDxMessageFactory
createMultimediaAuthAnswer
in interface ICxDxMessageFactory
answer
- the answer to create the MAA frompublic JMultimediaAuthRequest createMultimediaAuthRequest(Request request)
ICxDxMessageFactory
createMultimediaAuthRequest
in interface ICxDxMessageFactory
request
- the request to create the MAR frompublic JPushProfileAnswer createPushProfileAnswer(Answer answer)
ICxDxMessageFactory
createPushProfileAnswer
in interface ICxDxMessageFactory
answer
- the answer to create the PPA frompublic JPushProfileRequest createPushProfileRequest(Request request)
ICxDxMessageFactory
createPushProfileRequest
in interface ICxDxMessageFactory
request
- the request to create the PPR frompublic JRegistrationTerminationAnswer createRegistrationTerminationAnswer(Answer answer)
ICxDxMessageFactory
createRegistrationTerminationAnswer
in interface ICxDxMessageFactory
answer
- the answer to create the RTA frompublic JRegistrationTerminationRequest createRegistrationTerminationRequest(Request request)
ICxDxMessageFactory
createRegistrationTerminationRequest
in interface ICxDxMessageFactory
request
- the request to create the RTR frompublic JServerAssignmentAnswer createServerAssignmentAnswer(Answer answer)
ICxDxMessageFactory
createServerAssignmentAnswer
in interface ICxDxMessageFactory
answer
- the answer to create the SAA frompublic JServerAssignmentRequest createServerAssignmentRequest(Request request)
ICxDxMessageFactory
createServerAssignmentRequest
in interface ICxDxMessageFactory
request
- the request to create the SAR frompublic JUserAuthorizationAnswer createUserAuthorizationAnswer(Answer answer)
ICxDxMessageFactory
createUserAuthorizationAnswer
in interface ICxDxMessageFactory
answer
- the answer to create the UAA frompublic JUserAuthorizationRequest createUserAuthorizationRequest(Request request)
ICxDxMessageFactory
createUserAuthorizationRequest
in interface ICxDxMessageFactory
request
- the request to create the UAR frompublic long getApplicationId()
ICxDxMessageFactory
getApplicationId
in interface ICxDxMessageFactory
public void doLocationInformationRequest(ServerCxDxSession appSession, JLocationInfoRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doLocationInformationRequest
in interface ServerCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doMultimediaAuthRequest(ServerCxDxSession appSession, JMultimediaAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doMultimediaAuthRequest
in interface ServerCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doOtherEvent(AppSession appSession, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doOtherEvent
in interface ClientCxDxSessionListener
doOtherEvent
in interface ServerCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doPushProfileAnswer(ServerCxDxSession appSession, JPushProfileRequest request, JPushProfileAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doPushProfileAnswer
in interface ServerCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doRegistrationTerminationAnswer(ServerCxDxSession appSession, JRegistrationTerminationRequest request, JRegistrationTerminationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doRegistrationTerminationAnswer
in interface ServerCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doServerAssignmentRequest(ServerCxDxSession appSession, JServerAssignmentRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doServerAssignmentRequest
in interface ServerCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doUserAuthorizationRequest(ServerCxDxSession appSession, JUserAuthorizationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doUserAuthorizationRequest
in interface ServerCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doLocationInformationAnswer(ClientCxDxSession appSession, JLocationInfoRequest request, JLocationInfoAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doLocationInformationAnswer
in interface ClientCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doMultimediaAuthAnswer(ClientCxDxSession appSession, JMultimediaAuthRequest request, JMultimediaAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doMultimediaAuthAnswer
in interface ClientCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doPushProfileRequest(ClientCxDxSession appSession, JPushProfileRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doPushProfileRequest
in interface ClientCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doRegistrationTerminationRequest(ClientCxDxSession appSession, JRegistrationTerminationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doRegistrationTerminationRequest
in interface ClientCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doServerAssignmentAnswer(ClientCxDxSession appSession, JServerAssignmentRequest request, JServerAssignmentAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doServerAssignmentAnswer
in interface ClientCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void doUserAuthorizationAnswer(ClientCxDxSession appSession, JUserAuthorizationRequest request, JUserAuthorizationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doUserAuthorizationAnswer
in interface ClientCxDxSessionListener
InternalException
IllegalDiameterStateException
RouteException
OverloadException
public void stateChanged(Enum oldState, Enum newState)
stateChanged
in interface StateChangeListener<AppSession>
public void stateChanged(AppSession source, Enum oldState, Enum newState)
stateChanged
in interface StateChangeListener<AppSession>
Copyright © 2016. All Rights Reserved.