org.jdiameter.client.impl.app.auth
Class ClientAuthSessionImpl
java.lang.Object
org.jdiameter.common.impl.app.AppSessionImpl
org.jdiameter.common.impl.app.auth.AppAuthSessionImpl
org.jdiameter.client.impl.app.auth.ClientAuthSessionImpl
- All Implemented Interfaces:
- AppSession, StateMachine, ClientAuthSession, BaseSession, EventListener<Request,Answer>, NetworkReqListener
public class ClientAuthSessionImpl
- extends AppAuthSessionImpl
- implements ClientAuthSession, EventListener<Request,Answer>, NetworkReqListener
Client Authorization session implementation
- Author:
- erick.svenson@yahoo.com, Bartosz Baranowski , Alexandre Mendonca
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
sendAndStateLock
protected java.util.concurrent.locks.Lock sendAndStateLock
factory
protected transient IAuthMessageFactory factory
context
protected transient IClientAuthActionContext context
listener
protected transient ClientAuthSessionListener listener
TIMER_NAME_TS
protected static final java.lang.String TIMER_NAME_TS
- See Also:
- Constant Field Values
sessionData
protected IClientAuthSessionData sessionData
ClientAuthSessionImpl
public ClientAuthSessionImpl(IClientAuthSessionData sessionData,
ISessionFactory sf,
ClientAuthSessionListener lst,
IAuthMessageFactory fct,
StateChangeListener<AppSession> scListener,
IClientAuthActionContext context,
boolean stateless)
sendAbortSessionAnswer
public void sendAbortSessionAnswer(AbortSessionAnswer answer)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendAbortSessionAnswer in interface ClientAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendAuthRequest
public void sendAuthRequest(AppRequestEvent request)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendAuthRequest in interface ClientAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendReAuthAnswer
public void sendReAuthAnswer(ReAuthAnswer answer)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendReAuthAnswer in interface ClientAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
sendSessionTerminationRequest
public void sendSessionTerminationRequest(SessionTermRequest request)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
sendSessionTerminationRequest in interface ClientAuthSession
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
send
protected void send(org.jdiameter.client.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(ClientAuthSessionState 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
handleEventForStatefulSession
public boolean handleEventForStatefulSession(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()
throws java.lang.IllegalArgumentException,
InternalException
- Throws:
java.lang.IllegalArgumentException
InternalException
cancelTsTimer
protected void cancelTsTimer()
onTimer
public void onTimer(java.lang.String timerName)
- Specified by:
onTimer in class AppSessionImpl
createAbortSessionAnswer
protected AbortSessionAnswer createAbortSessionAnswer(Answer answer)
createAbortSessionRequest
protected AbortSessionRequest createAbortSessionRequest(Request request)
createReAuthAnswer
protected ReAuthAnswer createReAuthAnswer(Answer answer)
createReAuthRequest
protected ReAuthRequest createReAuthRequest(Request request)
createSessionTermAnswer
protected SessionTermAnswer createSessionTermAnswer(Answer answer)
createSessionTermRequest
protected SessionTermRequest createSessionTermRequest(Request request)
createSessionTermRequest
protected Request createSessionTermRequest()
hashCode
public int hashCode()
- Overrides:
hashCode in class AppAuthSessionImpl
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class AppAuthSessionImpl
release
public void release()
- Specified by:
release in interface BaseSession- Overrides:
release in class AppAuthSessionImpl
Copyright © 2014. All Rights Reserved.