public class CCASessionFactoryImpl extends Object implements ICCASessionFactory, ClientCCASessionListener, ServerCCASessionListener, StateChangeListener<AppSession>, ICCAMessageFactory, IServerCCASessionContext, IClientCCASessionContext
| Modifier and Type | Field and Description |
|---|---|
protected IClientCCASessionContext |
clientContextListener |
protected ClientCCASessionListener |
clientSessionListener |
protected int |
defaultCreditControlFailureHandling |
protected int |
defaultDirectDebitingFailureHandling |
protected long |
defaultTxTimerValue |
protected long |
defaultValidityTime |
protected ISessionDatasource |
iss |
protected org.slf4j.Logger |
logger |
protected ICCAMessageFactory |
messageFactory |
protected IServerCCASessionContext |
serverContextListener |
protected ServerCCASessionListener |
serverSessionListener |
protected IAppSessionDataFactory<ICCASessionData> |
sessionDataFactory |
protected ISessionFactory |
sessionFactory |
protected StateChangeListener<AppSession> |
stateListener |
| Constructor and Description |
|---|
CCASessionFactoryImpl() |
CCASessionFactoryImpl(SessionFactory sessionFactory) |
CCASessionFactoryImpl(SessionFactory sessionFactory,
int defaultDirectDebitingFailureHandling,
int defaultCreditControlFailureHandling,
long defaultValidityTime,
long defaultTxTimerValue) |
protected int defaultDirectDebitingFailureHandling
protected int defaultCreditControlFailureHandling
protected long defaultValidityTime
protected long defaultTxTimerValue
protected ClientCCASessionListener clientSessionListener
protected ServerCCASessionListener serverSessionListener
protected StateChangeListener<AppSession> stateListener
protected IServerCCASessionContext serverContextListener
protected IClientCCASessionContext clientContextListener
protected ICCAMessageFactory messageFactory
protected org.slf4j.Logger logger
protected ISessionDatasource iss
protected ISessionFactory sessionFactory
protected IAppSessionDataFactory<ICCASessionData> sessionDataFactory
public CCASessionFactoryImpl()
public CCASessionFactoryImpl(SessionFactory sessionFactory)
public CCASessionFactoryImpl(SessionFactory sessionFactory, int defaultDirectDebitingFailureHandling, int defaultCreditControlFailureHandling, long defaultValidityTime, long defaultTxTimerValue)
public void init(SessionFactory sessionFactory)
sessionFactory2 - public ClientCCASessionListener getClientSessionListener()
ICCASessionFactorygetClientSessionListener in interface ICCASessionFactorypublic void setClientSessionListener(ClientCCASessionListener clientSessionListener)
ICCASessionFactorysetClientSessionListener in interface ICCASessionFactoryclientSessionListener - the clientSessionListener to setpublic ServerCCASessionListener getServerSessionListener()
ICCASessionFactorygetServerSessionListener in interface ICCASessionFactorypublic void setServerSessionListener(ServerCCASessionListener serverSessionListener)
ICCASessionFactorysetServerSessionListener in interface ICCASessionFactoryserverSessionListener - the serverSessionListener to setpublic IServerCCASessionContext getServerContextListener()
getServerContextListener in interface ICCASessionFactorypublic void setServerContextListener(IServerCCASessionContext serverContextListener)
setServerContextListener in interface ICCASessionFactoryserverContextListener - the serverContextListener to setpublic IClientCCASessionContext getClientContextListener()
getClientContextListener in interface ICCASessionFactorypublic ICCAMessageFactory getMessageFactory()
getMessageFactory in interface ICCASessionFactorypublic void setMessageFactory(ICCAMessageFactory messageFactory)
setMessageFactory in interface ICCASessionFactorymessageFactory - the messageFactory to setpublic void setClientContextListener(IClientCCASessionContext clientContextListener)
setClientContextListener in interface ICCASessionFactoryclientContextListener - the clientContextListener to setpublic SessionFactory getSessionFactory()
public void setSessionFactory(SessionFactory sessionFactory)
sessionFactory - the sessionFactory to setpublic StateChangeListener<AppSession> getStateListener()
getStateListener in interface ICCASessionFactorypublic void setStateListener(StateChangeListener<AppSession> stateListener)
setStateListener in interface ICCASessionFactorystateListener - 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(ServerCCASession session, JCreditControlRequest request) throws InternalException
doCreditControlRequest in interface ServerCCASessionListenerInternalExceptionpublic void doCreditControlAnswer(ClientCCASession session, JCreditControlRequest request, JCreditControlAnswer answer) throws InternalException
doCreditControlAnswer in interface ClientCCASessionListenerInternalExceptionpublic void doReAuthRequest(ClientCCASession session, ReAuthRequest request) throws InternalException
doReAuthRequest in interface ClientCCASessionListenerInternalExceptionpublic void doReAuthAnswer(ServerCCASession session, ReAuthRequest request, ReAuthAnswer answer) throws InternalException
doReAuthAnswer in interface ServerCCASessionListenerInternalExceptionpublic void doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException
doOtherEvent in interface ClientCCASessionListenerdoOtherEvent in interface ServerCCASessionListenerInternalExceptionpublic JCreditControlAnswer createCreditControlAnswer(Answer answer)
createCreditControlAnswer in interface ICCAMessageFactorypublic JCreditControlRequest createCreditControlRequest(Request req)
createCreditControlRequest in interface ICCAMessageFactorypublic ReAuthAnswer createReAuthAnswer(Answer answer)
createReAuthAnswer in interface ICCAMessageFactorypublic ReAuthRequest createReAuthRequest(Request req)
createReAuthRequest in interface ICCAMessageFactorypublic 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(ServerCCASession session)
sessionSupervisionTimerExpired in interface IServerCCASessionContextpublic void sessionSupervisionTimerReStarted(ServerCCASession session, ScheduledFuture future)
sessionSupervisionTimerReStarted in interface IServerCCASessionContextpublic void sessionSupervisionTimerStarted(ServerCCASession session, ScheduledFuture future)
IServerCCASessionContextsessionSupervisionTimerStarted in interface IServerCCASessionContextpublic void sessionSupervisionTimerStopped(ServerCCASession session, ScheduledFuture future)
sessionSupervisionTimerStopped in interface IServerCCASessionContextpublic void timeoutExpired(Request request)
timeoutExpired in interface IServerCCASessionContextpublic void denyAccessOnDeliverFailure(ClientCCASession clientCCASessionImpl, Message request)
denyAccessOnDeliverFailure in interface IClientCCASessionContextpublic void denyAccessOnFailureMessage(ClientCCASession clientCCASessionImpl)
denyAccessOnFailureMessage in interface IClientCCASessionContextpublic void denyAccessOnTxExpire(ClientCCASession clientCCASessionImpl)
denyAccessOnTxExpire in interface IClientCCASessionContextpublic int getDefaultCCFHValue()
getDefaultCCFHValue in interface ClientCCASessionListenergetDefaultCCFHValue in interface IClientCCASessionContextpublic int getDefaultDDFHValue()
getDefaultDDFHValue in interface ClientCCASessionListenergetDefaultDDFHValue in interface IClientCCASessionContextpublic long getDefaultTxTimerValue()
getDefaultTxTimerValue in interface IClientCCASessionContextpublic void grantAccessOnDeliverFailure(ClientCCASession clientCCASessionImpl, Message request)
grantAccessOnDeliverFailure in interface IClientCCASessionContextpublic void grantAccessOnFailureMessage(ClientCCASession clientCCASessionImpl)
grantAccessOnFailureMessage in interface IClientCCASessionContextpublic void grantAccessOnTxExpire(ClientCCASession clientCCASessionImpl)
grantAccessOnTxExpire in interface IClientCCASessionContextpublic void indicateServiceError(ClientCCASession clientCCASessionImpl)
indicateServiceError in interface IClientCCASessionContextpublic void txTimerExpired(ClientCCASession session)
txTimerExpired in interface IClientCCASessionContextpublic long[] getApplicationIds()
getApplicationIds in interface ICCAMessageFactorypublic long getDefaultValidityTime()
IServerCCASessionContextgetDefaultValidityTime in interface IServerCCASessionContextCopyright © 2016. All Rights Reserved.