public class ServerAuthSessionImpl extends AppAuthSessionImpl implements ServerAuthSession, EventListener<Request,Answer>, NetworkReqListener
| Modifier and Type | Field and Description |
|---|---|
protected IServerAuthActionContext |
context |
protected IAuthMessageFactory |
factory |
protected ServerAuthSessionListener |
listener |
protected static org.slf4j.Logger |
logger |
protected IServerAuthSessionData |
sessionData |
protected static String |
TIMER_NAME_TS |
appId, stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ServerAuthSessionImpl(IServerAuthSessionData sessionData,
ISessionFactory sf,
ServerAuthSessionListener lst,
IAuthMessageFactory fct,
StateChangeListener<AppSession> scListener,
IServerAuthActionContext context,
long tsTimeout,
boolean stateless) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelTsTimer() |
boolean |
equals(Object obj) |
<E> E |
getState(Class<E> eClass) |
boolean |
handleEvent(StateEvent event) |
boolean |
handleEventForStatefullSession(StateEvent event) |
boolean |
handleEventForStatelessSession(StateEvent event) |
int |
hashCode() |
boolean |
isReplicable() |
boolean |
isStateless() |
void |
onTimer(String timerName) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
protected void |
send(org.jdiameter.server.impl.app.auth.Event.Type type,
AppEvent event) |
void |
sendAbortSessionRequest(AbortSessionRequest abortSessionRequest) |
void |
sendAuthAnswer(AppAnswerEvent appAnswerEvent) |
void |
sendReAuthRequest(ReAuthRequest reAuthRequest) |
void |
sendSessionTerminationAnswer(SessionTermAnswer sessionTermAnswer) |
protected void |
setState(ServerAuthSessionState newState) |
protected void |
startTsTimer() |
void |
timeoutExpired(Request request) |
addStateChangeNotification, removeStateChangeNotificationgetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValidaddStateChangeNotification, removeStateChangeNotificationprotected static final org.slf4j.Logger logger
protected IServerAuthSessionData sessionData
protected transient IAuthMessageFactory factory
protected transient IServerAuthActionContext context
protected transient ServerAuthSessionListener listener
protected static final String TIMER_NAME_TS
public ServerAuthSessionImpl(IServerAuthSessionData sessionData, ISessionFactory sf, ServerAuthSessionListener lst, IAuthMessageFactory fct, StateChangeListener<AppSession> scListener, IServerAuthActionContext context, long tsTimeout, boolean stateless)
public void sendAuthAnswer(AppAnswerEvent appAnswerEvent) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAuthAnswer in interface ServerAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendReAuthRequest(ReAuthRequest reAuthRequest) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendReAuthRequest in interface ServerAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendAbortSessionRequest(AbortSessionRequest abortSessionRequest) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAbortSessionRequest in interface ServerAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendSessionTerminationAnswer(SessionTermAnswer sessionTermAnswer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendSessionTerminationAnswer in interface ServerAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionprotected void send(org.jdiameter.server.impl.app.auth.Event.Type type,
AppEvent event)
throws InternalException
InternalExceptionpublic boolean isStateless()
isStateless in interface AppSessionprotected void setState(ServerAuthSessionState newState)
public <E> E getState(Class<E> eClass)
getState in interface StateMachinepublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionpublic boolean handleEventForStatelessSession(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionpublic boolean handleEventForStatefullSession(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionpublic void receivedSuccessMessage(Request request, Answer answer)
receivedSuccessMessage in interface EventListener<Request,Answer>public void timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>public Answer processRequest(Request request)
processRequest in interface NetworkReqListenerpublic boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplprotected void startTsTimer()
protected void cancelTsTimer()
public void onTimer(String timerName)
onTimer in class AppSessionImplpublic int hashCode()
hashCode in class AppAuthSessionImplpublic boolean equals(Object obj)
equals in class AppAuthSessionImplpublic void release()
release in interface BaseSessionrelease in class AppAuthSessionImplCopyright © 2016. All Rights Reserved.