org.jdiameter.server.impl.app.gq
Class GqServerSessionImpl
java.lang.Object
org.jdiameter.common.impl.app.AppSessionImpl
org.jdiameter.common.impl.app.auth.AppAuthSessionImpl
org.jdiameter.server.impl.app.gq.GqServerSessionImpl
- All Implemented Interfaces:
- AppSession, StateMachine, ServerAuthSession, BaseSession, EventListener<Request,Answer>, GqServerSession, NetworkReqListener
public class GqServerSessionImpl
- extends AppAuthSessionImpl
- implements GqServerSession, EventListener<Request,Answer>, NetworkReqListener
Server Gq Application session implementation
- Author:
- Yulian Oifa , Alexandre Mendonca , Bartosz Baranowski
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
sessionData
protected IServerAuthSessionData sessionData
factory
protected transient IAuthMessageFactory factory
context
protected transient IServerAuthActionContext context
listener
protected transient ServerAuthSessionListener listener
TIMER_NAME_TS
protected static final java.lang.String TIMER_NAME_TS
- See Also:
- Constant Field Values
GqServerSessionImpl
public GqServerSessionImpl(IServerAuthSessionData sessionData,
ISessionFactory sf,
ServerAuthSessionListener lst,
IAuthMessageFactory fct,
StateChangeListener<AppSession> scListener,
IServerAuthActionContext context,
long tsTimeout,
boolean stateless)
sendAuthAnswer
public void sendAuthAnswer(AppAnswerEvent appAnswerEvent)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendAuthAnswer in interface ServerAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendReAuthRequest
public void sendReAuthRequest(ReAuthRequest reAuthRequest)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendReAuthRequest in interface ServerAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendAbortSessionRequest
public void sendAbortSessionRequest(AbortSessionRequest abortSessionRequest)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendAbortSessionRequest in interface ServerAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendSessionTerminationAnswer
public void sendSessionTerminationAnswer(SessionTermAnswer sessionTermAnswer)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendSessionTerminationAnswer in interface ServerAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendPost
protected void sendPost(org.jdiameter.server.impl.app.gq.Event.Type type,
AppEvent event)
throws InternalException
- Throws:
InternalException
send
protected void send(org.jdiameter.server.impl.app.gq.Event.Type type,
AppEvent event)
throws InternalException
- Throws:
InternalException
isStateless
public boolean isStateless()
- Specified by:
isStateless in interface AppSession
setState
protected void setState(ServerAuthSessionState newState)
getState
public <E> E getState(java.lang.Class<E> eClass)
- Specified by:
getState in interface StateMachine
handleEvent
public boolean handleEvent(StateEvent event)
throws InternalException,
OverloadException
- Specified by:
handleEvent in interface StateMachine
- Throws:
InternalException
OverloadException
handleEventForStatelessSession
public boolean handleEventForStatelessSession(StateEvent event)
throws InternalException,
OverloadException
- Throws:
InternalException
OverloadException
handleEventForStatefullSession
public boolean handleEventForStatefullSession(StateEvent event)
throws InternalException,
OverloadException
- Throws:
InternalException
OverloadException
receivedSuccessMessage
public void receivedSuccessMessage(Request request,
Answer answer)
- Specified by:
receivedSuccessMessage in interface EventListener<Request,Answer>
timeoutExpired
public void timeoutExpired(Request request)
- Specified by:
timeoutExpired in interface EventListener<Request,Answer>
processRequest
public Answer processRequest(Request request)
- Specified by:
processRequest in interface NetworkReqListener
isReplicable
public boolean isReplicable()
- Specified by:
isReplicable in interface BaseSession- Overrides:
isReplicable in class AppSessionImpl
startTsTimer
protected void startTsTimer()
cancelTsTimer
protected void cancelTsTimer()
onTimer
public void onTimer(java.lang.String timerName)
- Specified by:
onTimer in class AppSessionImpl
createReAuthAnswer
protected ReAuthAnswer createReAuthAnswer(Answer answer)
createReAuthRequest
protected ReAuthRequest createReAuthRequest(Request request)
hashCode
public int hashCode()
- Overrides:
hashCode in class AppAuthSessionImpl
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class AppAuthSessionImpl
Copyright © 2014. All Rights Reserved.