org.jdiameter.server.impl.app.auth
Class ServerAuthSessionImpl
java.lang.Object
org.jdiameter.common.impl.app.AppSessionImpl
org.jdiameter.common.impl.app.auth.AppAuthSessionImpl
org.jdiameter.server.impl.app.auth.ServerAuthSessionImpl
- All Implemented Interfaces:
- java.io.Serializable, AppSession, StateMachine, ServerAuthSession, BaseSession, EventListener<Request,Answer>, NetworkReqListener
public class ServerAuthSessionImpl
- extends AppAuthSessionImpl
- implements ServerAuthSession, EventListener<Request,Answer>, NetworkReqListener
Server Authorization session implementation
- Author:
- erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
stateless
protected boolean stateless
state
protected ServerAuthSessionState state
factory
protected transient IAuthMessageFactory factory
context
protected transient IServerAuthActionContext context
listener
protected transient ServerAuthSessionListener listener
tsTimeout
protected long tsTimeout
timerId_ts
protected java.io.Serializable timerId_ts
TIMER_NAME_TS
protected static final java.lang.String TIMER_NAME_TS
- See Also:
- Constant Field Values
ServerAuthSessionImpl
public ServerAuthSessionImpl(java.lang.String sessionId,
SessionFactory sf,
Request initialRequest,
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
send
protected void send(org.jdiameter.server.impl.app.auth.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
relink
public void relink(IContainer stack)
- Overrides:
relink in class AppAuthSessionImpl
startTsTimer
protected void startTsTimer()
cancelTsTimer
protected void cancelTsTimer()
onTimer
public void onTimer(java.lang.String timerName)
- Overrides:
onTimer in class AppSessionImpl
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
Copyright © 2010. All Rights Reserved.