public class GxSessionFactoryImpl extends Object implements IGxSessionFactory, ClientGxSessionListener, ServerGxSessionListener, StateChangeListener<AppSession>, IGxMessageFactory, IServerGxSessionContext, IClientGxSessionContext
| Modifier and Type | Field and Description |
|---|---|
protected IClientGxSessionContext |
clientContextListener |
protected ClientGxSessionListener |
clientSessionListener |
protected int |
defaultCreditControlFailureHandling |
protected int |
defaultDirectDebitingFailureHandling |
protected long |
defaultTxTimerValue |
protected long |
defaultValidityTime |
protected ISessionDatasource |
iss |
protected org.slf4j.Logger |
logger |
protected IGxMessageFactory |
messageFactory |
protected IServerGxSessionContext |
serverContextListener |
protected ServerGxSessionListener |
serverSessionListener |
protected IAppSessionDataFactory<IGxSessionData> |
sessionDataFactory |
protected ISessionFactory |
sessionFactory |
protected StateChangeListener<AppSession> |
stateListener |
| Constructor and Description |
|---|
GxSessionFactoryImpl(SessionFactory sessionFactory) |
GxSessionFactoryImpl(SessionFactory sessionFactory,
int defaultDirectDebitingFailureHandling,
int defaultCreditControlFailureHandling,
long defaultValidityTime,
long defaultTxTimerValue) |
protected int defaultDirectDebitingFailureHandling
protected int defaultCreditControlFailureHandling
protected long defaultValidityTime
protected long defaultTxTimerValue
protected ClientGxSessionListener clientSessionListener
protected ServerGxSessionListener serverSessionListener
protected StateChangeListener<AppSession> stateListener
protected IServerGxSessionContext serverContextListener
protected IClientGxSessionContext clientContextListener
protected IGxMessageFactory messageFactory
protected org.slf4j.Logger logger
protected ISessionDatasource iss
protected ISessionFactory sessionFactory
protected IAppSessionDataFactory<IGxSessionData> sessionDataFactory
public GxSessionFactoryImpl(SessionFactory sessionFactory)
public GxSessionFactoryImpl(SessionFactory sessionFactory, int defaultDirectDebitingFailureHandling, int defaultCreditControlFailureHandling, long defaultValidityTime, long defaultTxTimerValue)
public ClientGxSessionListener getClientSessionListener()
IGxSessionFactorygetClientSessionListener in interface IGxSessionFactorypublic void setClientSessionListener(ClientGxSessionListener clientSessionListener)
IGxSessionFactorysetClientSessionListener in interface IGxSessionFactoryclientSessionListener - the clientSessionListener to setpublic ServerGxSessionListener getServerSessionListener()
IGxSessionFactorygetServerSessionListener in interface IGxSessionFactorypublic void setServerSessionListener(ServerGxSessionListener serverSessionListener)
IGxSessionFactorysetServerSessionListener in interface IGxSessionFactoryserverSessionListener - the serverSessionListener to setpublic IServerGxSessionContext getServerContextListener()
getServerContextListener in interface IGxSessionFactorypublic void setServerContextListener(IServerGxSessionContext serverContextListener)
setServerContextListener in interface IGxSessionFactoryserverContextListener - the serverContextListener to setpublic IClientGxSessionContext getClientContextListener()
getClientContextListener in interface IGxSessionFactorypublic IGxMessageFactory getMessageFactory()
getMessageFactory in interface IGxSessionFactorypublic void setMessageFactory(IGxMessageFactory messageFactory)
setMessageFactory in interface IGxSessionFactorymessageFactory - the messageFactory to setpublic void setClientContextListener(IClientGxSessionContext clientContextListener)
setClientContextListener in interface IGxSessionFactoryclientContextListener - the clientContextListener to setpublic SessionFactory getSessionFactory()
public void setSessionFactory(SessionFactory sessionFactory)
sessionFactory - the sessionFactory to setpublic StateChangeListener<AppSession> getStateListener()
getStateListener in interface IGxSessionFactorypublic void setStateListener(StateChangeListener<AppSession> stateListener)
setStateListener in interface IGxSessionFactorystateListener - 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 doCreditControlRequest(ServerGxSession session, GxCreditControlRequest request) throws InternalException
doCreditControlRequest in interface ServerGxSessionListenerInternalExceptionpublic void doCreditControlAnswer(ClientGxSession session, GxCreditControlRequest request, GxCreditControlAnswer answer) throws InternalException
doCreditControlAnswer in interface ClientGxSessionListenerInternalExceptionpublic void doGxReAuthRequest(ClientGxSession session, GxReAuthRequest request) throws InternalException
doGxReAuthRequest in interface ClientGxSessionListenerInternalExceptionpublic void doGxReAuthAnswer(ServerGxSession session, GxReAuthRequest request, GxReAuthAnswer answer) throws InternalException
doGxReAuthAnswer in interface ServerGxSessionListenerInternalExceptionpublic void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException
doOtherEvent in interface ClientGxSessionListenerdoOtherEvent in interface ServerGxSessionListenerInternalExceptionpublic GxCreditControlAnswer createCreditControlAnswer(Answer answer)
createCreditControlAnswer in interface IGxMessageFactorypublic GxCreditControlRequest createCreditControlRequest(Request req)
createCreditControlRequest in interface IGxMessageFactorypublic GxReAuthAnswer createGxReAuthAnswer(Answer answer)
createGxReAuthAnswer in interface IGxMessageFactorypublic GxReAuthRequest createGxReAuthRequest(Request req)
createGxReAuthRequest in interface IGxMessageFactorypublic 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(ServerGxSession session)
sessionSupervisionTimerExpired in interface IServerGxSessionContextpublic void sessionSupervisionTimerReStarted(ServerGxSession session, ScheduledFuture future)
sessionSupervisionTimerReStarted in interface IServerGxSessionContextpublic void sessionSupervisionTimerStarted(ServerGxSession session, ScheduledFuture future)
IServerGxSessionContextsessionSupervisionTimerStarted in interface IServerGxSessionContextpublic void sessionSupervisionTimerStopped(ServerGxSession session, ScheduledFuture future)
sessionSupervisionTimerStopped in interface IServerGxSessionContextpublic void timeoutExpired(Request request)
timeoutExpired in interface IServerGxSessionContextpublic void denyAccessOnDeliverFailure(ClientGxSession clientGxSessionImpl, Message request)
denyAccessOnDeliverFailure in interface IClientGxSessionContextpublic void denyAccessOnFailureMessage(ClientGxSession clientGxSessionImpl)
denyAccessOnFailureMessage in interface IClientGxSessionContextpublic void denyAccessOnTxExpire(ClientGxSession clientGxSessionImpl)
denyAccessOnTxExpire in interface IClientGxSessionContextpublic int getDefaultCCFHValue()
getDefaultCCFHValue in interface ClientGxSessionListenergetDefaultCCFHValue in interface IClientGxSessionContextpublic int getDefaultDDFHValue()
getDefaultDDFHValue in interface ClientGxSessionListenergetDefaultDDFHValue in interface IClientGxSessionContextpublic long getDefaultTxTimerValue()
getDefaultTxTimerValue in interface IClientGxSessionContextpublic void grantAccessOnDeliverFailure(ClientGxSession clientGxSessionImpl, Message request)
grantAccessOnDeliverFailure in interface IClientGxSessionContextpublic void grantAccessOnFailureMessage(ClientGxSession clientGxSessionImpl)
grantAccessOnFailureMessage in interface IClientGxSessionContextpublic void grantAccessOnTxExpire(ClientGxSession clientGxSessionImpl)
grantAccessOnTxExpire in interface IClientGxSessionContextpublic void indicateServiceError(ClientGxSession clientGxSessionImpl)
indicateServiceError in interface IClientGxSessionContextpublic void txTimerExpired(ClientGxSession session)
txTimerExpired in interface IClientGxSessionContextpublic long[] getApplicationIds()
getApplicationIds in interface IGxMessageFactorypublic long getDefaultValidityTime()
IServerGxSessionContextgetDefaultValidityTime in interface IServerGxSessionContextCopyright © 2016. All Rights Reserved.