public class RxSessionFactoryImpl extends Object implements IRxSessionFactory, ClientRxSessionListener, ServerRxSessionListener, StateChangeListener<AppSession>, IRxMessageFactory, IServerRxSessionContext, IClientRxSessionContext
| Modifier and Type | Field and Description |
|---|---|
protected IClientRxSessionContext |
clientContextListener |
protected ClientRxSessionListener |
clientSessionListener |
protected int |
defaultAAFailureHandling |
protected int |
defaultDirectDebitingFailureHandling |
protected long |
defaultTxTimerValue |
protected long |
defaultValidityTime |
protected ISessionDatasource |
iss |
protected org.slf4j.Logger |
logger |
protected IRxMessageFactory |
messageFactory |
protected IServerRxSessionContext |
serverContextListener |
protected ServerRxSessionListener |
serverSessionListener |
protected IAppSessionDataFactory<IRxSessionData> |
sessionDataFactory |
protected ISessionFactory |
sessionFactory |
protected StateChangeListener<AppSession> |
stateListener |
| Constructor and Description |
|---|
RxSessionFactoryImpl(SessionFactory sessionFactory) |
RxSessionFactoryImpl(SessionFactory sessionFactory,
int defaultDirectDebitingFailureHandling,
int defaultAAFailureHandling,
long defaultValidityTime,
long defaultTxTimerValue) |
protected int defaultDirectDebitingFailureHandling
protected int defaultAAFailureHandling
protected long defaultValidityTime
protected long defaultTxTimerValue
protected ClientRxSessionListener clientSessionListener
protected ServerRxSessionListener serverSessionListener
protected StateChangeListener<AppSession> stateListener
protected IServerRxSessionContext serverContextListener
protected IClientRxSessionContext clientContextListener
protected IRxMessageFactory messageFactory
protected org.slf4j.Logger logger
protected ISessionDatasource iss
protected ISessionFactory sessionFactory
protected IAppSessionDataFactory<IRxSessionData> sessionDataFactory
public RxSessionFactoryImpl(SessionFactory sessionFactory)
public RxSessionFactoryImpl(SessionFactory sessionFactory, int defaultDirectDebitingFailureHandling, int defaultAAFailureHandling, long defaultValidityTime, long defaultTxTimerValue)
public ClientRxSessionListener getClientSessionListener()
IRxSessionFactorygetClientSessionListener in interface IRxSessionFactorypublic void setClientSessionListener(ClientRxSessionListener clientSessionListener)
IRxSessionFactorysetClientSessionListener in interface IRxSessionFactoryclientSessionListener - the clientSessionListener to setpublic ServerRxSessionListener getServerSessionListener()
IRxSessionFactorygetServerSessionListener in interface IRxSessionFactorypublic void setServerSessionListener(ServerRxSessionListener serverSessionListener)
IRxSessionFactorysetServerSessionListener in interface IRxSessionFactoryserverSessionListener - the serverSessionListener to setpublic IServerRxSessionContext getServerContextListener()
getServerContextListener in interface IRxSessionFactorypublic void setServerContextListener(IServerRxSessionContext serverContextListener)
setServerContextListener in interface IRxSessionFactoryserverContextListener - the serverContextListener to setpublic IClientRxSessionContext getClientContextListener()
getClientContextListener in interface IRxSessionFactorypublic IRxMessageFactory getMessageFactory()
getMessageFactory in interface IRxSessionFactorypublic void setMessageFactory(IRxMessageFactory messageFactory)
setMessageFactory in interface IRxSessionFactorymessageFactory - the messageFactory to setpublic void setClientContextListener(IClientRxSessionContext clientContextListener)
setClientContextListener in interface IRxSessionFactoryclientContextListener - the clientContextListener to setpublic SessionFactory getSessionFactory()
public void setSessionFactory(SessionFactory sessionFactory)
sessionFactory - the sessionFactory to setpublic StateChangeListener<AppSession> getStateListener()
getStateListener in interface IRxSessionFactorypublic void setStateListener(StateChangeListener<AppSession> stateListener)
setStateListener in interface IRxSessionFactorystateListener - the stateListener to setpublic AppSession getSession(String sessionId, Class<? extends AppSession> aClass)
getSession in interface IAppSessionFactorypublic AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args)
getNewSession in interface IAppSessionFactorypublic void doAARequest(ServerRxSession session, RxAARequest request) throws InternalException
doAARequest in interface ServerRxSessionListenerInternalExceptionpublic void doAAAnswer(ClientRxSession session, RxAARequest request, RxAAAnswer answer) throws InternalException
doAAAnswer in interface ClientRxSessionListenerInternalExceptionpublic void doReAuthRequest(ClientRxSession session, RxReAuthRequest request) throws InternalException
doReAuthRequest in interface ClientRxSessionListenerInternalExceptionpublic void doReAuthAnswer(ServerRxSession session, RxReAuthRequest request, RxReAuthAnswer answer) throws InternalException
doReAuthAnswer in interface ServerRxSessionListenerInternalExceptionpublic void doAbortSessionRequest(ClientRxSession session, RxAbortSessionRequest request) throws InternalException
doAbortSessionRequest in interface ClientRxSessionListenerInternalExceptionpublic void doAbortSessionAnswer(ServerRxSession session, RxAbortSessionRequest request, RxAbortSessionAnswer answer) throws InternalException
doAbortSessionAnswer in interface ServerRxSessionListenerInternalExceptionpublic void doSessionTermRequest(ServerRxSession session, RxSessionTermRequest request) throws InternalException
doSessionTermRequest in interface ServerRxSessionListenerInternalExceptionpublic void doSessionTermAnswer(ClientRxSession session, RxSessionTermRequest request, RxSessionTermAnswer answer) throws InternalException
doSessionTermAnswer in interface ClientRxSessionListenerInternalExceptionpublic void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException
doOtherEvent in interface ClientRxSessionListenerdoOtherEvent in interface ServerRxSessionListenerInternalExceptionpublic RxAAAnswer createAAAnswer(Answer answer)
createAAAnswer in interface IRxMessageFactorypublic RxAARequest createAARequest(Request req)
createAARequest in interface IRxMessageFactorypublic RxReAuthAnswer createReAuthAnswer(Answer answer)
createReAuthAnswer in interface IRxMessageFactorypublic RxReAuthRequest createReAuthRequest(Request req)
createReAuthRequest in interface IRxMessageFactorypublic RxSessionTermAnswer createSessionTermAnswer(Answer answer)
createSessionTermAnswer in interface IRxMessageFactorypublic RxSessionTermRequest createSessionTermRequest(Request req)
createSessionTermRequest in interface IRxMessageFactorypublic RxAbortSessionAnswer createAbortSessionAnswer(Answer answer)
createAbortSessionAnswer in interface IRxMessageFactorypublic RxAbortSessionRequest createAbortSessionRequest(Request req)
createAbortSessionRequest in interface IRxMessageFactorypublic 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>public void sessionSupervisionTimerExpired(ServerRxSession session)
sessionSupervisionTimerExpired in interface IServerRxSessionContextpublic void sessionSupervisionTimerReStarted(ServerRxSession session, ScheduledFuture future)
sessionSupervisionTimerReStarted in interface IServerRxSessionContextpublic void sessionSupervisionTimerStarted(ServerRxSession session, ScheduledFuture future)
IServerRxSessionContextsessionSupervisionTimerStarted in interface IServerRxSessionContextpublic void sessionSupervisionTimerStopped(ServerRxSession session, ScheduledFuture future)
sessionSupervisionTimerStopped in interface IServerRxSessionContextpublic void timeoutExpired(Request request)
public void denyAccessOnDeliverFailure(ClientRxSession clientRxSessionImpl, Message request)
denyAccessOnDeliverFailure in interface IClientRxSessionContextpublic void denyAccessOnFailureMessage(ClientRxSession clientRxSessionImpl)
denyAccessOnFailureMessage in interface IClientRxSessionContextpublic void denyAccessOnTxExpire(ClientRxSession clientRxSessionImpl)
public void grantAccessOnDeliverFailure(ClientRxSession clientRxSessionImpl, Message request)
grantAccessOnDeliverFailure in interface IClientRxSessionContextpublic void grantAccessOnFailureMessage(ClientRxSession clientRxSessionImpl)
grantAccessOnFailureMessage in interface IClientRxSessionContextpublic void grantAccessOnTxExpire(ClientRxSession clientRxSessionImpl)
public void indicateServiceError(ClientRxSession clientRxSessionImpl)
indicateServiceError in interface IClientRxSessionContextpublic long[] getApplicationIds()
getApplicationIds in interface IRxMessageFactoryCopyright © 2016. All Rights Reserved.