public class GqSessionFactoryImpl extends Object implements IAuthSessionFactory, IAuthMessageFactory, ServerAuthSessionListener, ClientAuthSessionListener, IClientAuthActionContext, IServerAuthActionContext, StateChangeListener<AppSession>
| Modifier and Type | Field and Description |
|---|---|
protected IClientAuthActionContext |
clientSessionContext |
protected ClientAuthSessionListener |
clientSessionListener |
protected ISessionDatasource |
iss |
protected static org.slf4j.Logger |
logger |
protected IAuthMessageFactory |
messageFactory |
protected long |
messageTimeout |
protected IServerAuthActionContext |
serverSessionContext |
protected ServerAuthSessionListener |
serverSessionListener |
protected IAppSessionDataFactory<IAuthSessionData> |
sessionDataFactory |
protected ISessionFactory |
sessionFactory |
protected boolean |
stateles |
protected StateChangeListener<AppSession> |
stateListener |
| Constructor and Description |
|---|
GqSessionFactoryImpl(SessionFactory sessionFactory) |
protected IAuthMessageFactory messageFactory
protected ServerAuthSessionListener serverSessionListener
protected StateChangeListener<AppSession> stateListener
protected ClientAuthSessionListener clientSessionListener
protected boolean stateles
protected long messageTimeout
protected static final org.slf4j.Logger logger
protected ISessionDatasource iss
protected ISessionFactory sessionFactory
protected IServerAuthActionContext serverSessionContext
protected IClientAuthActionContext clientSessionContext
protected IAppSessionDataFactory<IAuthSessionData> sessionDataFactory
public GqSessionFactoryImpl(SessionFactory sessionFactory)
public IClientAuthActionContext getClientSessionContext()
getClientSessionContext in interface IAuthSessionFactorypublic void setClientSessionContext(IClientAuthActionContext clientSessionContext)
setClientSessionContext in interface IAuthSessionFactoryclientSessionContext - the clientSessionContext to setpublic IServerAuthActionContext getServerSessionContext()
getServerSessionContext in interface IAuthSessionFactorypublic void setServerSessionContext(IServerAuthActionContext serverSessionContext)
setServerSessionContext in interface IAuthSessionFactoryserverSessionContext - the serverSessionContext to setpublic long getMessageTimeout()
getMessageTimeout in interface IAuthSessionFactorypublic void setMessageTimeout(long messageTimeout)
setMessageTimeout in interface IAuthSessionFactorymessageTimeout - the messageTimeout to setpublic IAuthMessageFactory getMessageFactory()
getMessageFactory in interface IAuthSessionFactorypublic void setMessageFactory(IAuthMessageFactory messageFactory)
setMessageFactory in interface IAuthSessionFactorymessageFactory - the messageFactory to setpublic ServerAuthSessionListener getServerSessionListener()
getServerSessionListener in interface IAuthSessionFactorypublic void setServerSessionListener(ServerAuthSessionListener serverSessionListener)
setServerSessionListener in interface IAuthSessionFactoryserverSessionListener - the serverSessionListener to setpublic StateChangeListener<AppSession> getStateListener()
getStateListener in interface IAuthSessionFactorypublic void setStateListener(StateChangeListener<AppSession> stateListener)
setStateListener in interface IAuthSessionFactorystateListener - the stateListener to setpublic ClientAuthSessionListener getClientSessionListener()
getClientSessionListener in interface IAuthSessionFactorypublic void setClientSessionListener(ClientAuthSessionListener clientSessionListener)
setClientSessionListener in interface IAuthSessionFactoryclientSessionListener - the clientSessionListener to setpublic boolean isStateles()
isStateles in interface IAuthSessionFactorypublic void setStateles(boolean stateles)
setStateles in interface IAuthSessionFactorypublic 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 AppAnswerEvent createAuthAnswer(Answer answer)
createAuthAnswer in interface IAuthMessageFactorypublic AppRequestEvent createAuthRequest(Request request)
createAuthRequest in interface IAuthMessageFactorypublic int getAuthMessageCommandCode()
getAuthMessageCommandCode in interface IAuthMessageFactorypublic ApplicationId getApplicationId()
getApplicationId in interface IAuthMessageFactorypublic void doAbortSessionRequestEvent(ClientAuthSession appSession, AbortSessionRequest asr) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doAbortSessionRequestEvent in interface ClientAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doAbortSessionAnswerEvent(ServerAuthSession appSession, AbortSessionAnswer asa) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doAbortSessionAnswerEvent in interface ServerAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doSessionTerminationRequestEvent(ServerAuthSession appSession, SessionTermRequest str) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doSessionTerminationRequestEvent in interface ServerAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doSessionTerminationAnswerEvent(ClientAuthSession appSession, SessionTermAnswer sta) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doSessionTerminationAnswerEvent in interface ClientAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doAuthRequestEvent(ServerAuthSession appSession, AppRequestEvent request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doAuthRequestEvent in interface ServerAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doAuthAnswerEvent(ClientAuthSession appSession, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doAuthAnswerEvent in interface ClientAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doReAuthRequestEvent(ClientAuthSession appSession, ReAuthRequest rar) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doReAuthRequestEvent in interface ClientAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doReAuthAnswerEvent(ServerAuthSession appSession, ReAuthRequest rar, ReAuthAnswer raa) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doReAuthAnswerEvent in interface ServerAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doOtherEvent(AppSession appSession, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doOtherEvent in interface ClientAuthSessionListenerdoOtherEvent in interface ServerAuthSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic 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 accessTimeoutElapses(ClientAuthSession session) throws InternalException
accessTimeoutElapses in interface IClientAuthActionContextInternalExceptionpublic long getAccessTimeout()
throws InternalException
getAccessTimeout in interface IClientAuthActionContextgetAccessTimeout in interface IServerAuthActionContextInternalExceptionpublic void disconnectUserOrDev(ClientAuthSession session, Message request) throws InternalException
disconnectUserOrDev in interface IClientAuthActionContextInternalExceptionpublic void accessTimeoutElapses(ServerAuthSession session) throws InternalException
accessTimeoutElapses in interface IServerAuthActionContextInternalExceptionCopyright © 2016. All Rights Reserved.