public class GqServerSessionImpl extends AppAuthSessionImpl implements GqServerSession, 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 |
|---|
GqServerSessionImpl(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() |
protected ReAuthAnswer |
createReAuthAnswer(Answer answer) |
protected ReAuthRequest |
createReAuthRequest(Request request) |
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) |
protected void |
send(org.jdiameter.server.impl.app.gq.Event.Type type,
AppEvent event) |
void |
sendAbortSessionRequest(AbortSessionRequest abortSessionRequest) |
void |
sendAuthAnswer(AppAnswerEvent appAnswerEvent) |
protected void |
sendPost(org.jdiameter.server.impl.app.gq.Event.Type type,
AppEvent event) |
void |
sendReAuthRequest(ReAuthRequest reAuthRequest) |
void |
sendSessionTerminationAnswer(SessionTermAnswer sessionTermAnswer) |
protected void |
setState(ServerAuthSessionState newState) |
protected void |
startTsTimer() |
void |
timeoutExpired(Request request) |
addStateChangeNotification, release, removeStateChangeNotificationgetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValid, releaseaddStateChangeNotification, 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 GqServerSessionImpl(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 sendPost(org.jdiameter.server.impl.app.gq.Event.Type type,
AppEvent event)
throws InternalException
InternalExceptionprotected void send(org.jdiameter.server.impl.app.gq.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 AppSessionImplprotected ReAuthAnswer createReAuthAnswer(Answer answer)
protected ReAuthRequest createReAuthRequest(Request request)
public int hashCode()
hashCode in class AppAuthSessionImplpublic boolean equals(Object obj)
equals in class AppAuthSessionImplCopyright © 2016. All Rights Reserved.