org.mobicents.slee.resource.diameter.rx
Class RxServerSessionActivityImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.DiameterActivityImpl
      extended by org.mobicents.slee.resource.diameter.rx.RxSessionActivityImpl
          extended by org.mobicents.slee.resource.diameter.rx.RxServerSessionActivityImpl
All Implemented Interfaces:
java.io.Serializable, net.java.slee.resource.diameter.base.DiameterActivity, RxServerSessionActivity, RxSessionActivity, org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>

public class RxServerSessionActivityImpl
extends RxSessionActivityImpl
implements RxServerSessionActivity, org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>

Implementation of RxServerSessionActivity.

Author:
Alexandre Mendonca , Bartosz Baranowski , Richard Good
See Also:
Serialized Form

Field Summary
protected  AARequest lastAARequest
           
protected  SessionTerminationRequest lastSessionTermRequest
           
protected  org.jdiameter.api.rx.ServerRxSession session
           
 
Fields inherited from class org.mobicents.slee.resource.diameter.rx.RxSessionActivityImpl
rxMessageFactory
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.DiameterActivityImpl
avpFactory, baseListener, destinationHost, destinationRealm, eventListener, handle, messageFactory, sessionId, terminateAfterProcessing
 
Constructor Summary
RxServerSessionActivityImpl(net.java.slee.resource.diameter.base.DiameterMessageFactory messageFactory, net.java.slee.resource.diameter.base.DiameterAvpFactory avpFactory, org.jdiameter.api.rx.ServerRxSession session, net.java.slee.resource.diameter.base.events.avp.DiameterIdentity destinationHost, net.java.slee.resource.diameter.base.events.avp.DiameterIdentity destinationRealm, org.jdiameter.api.Stack stack)
           
 
Method Summary
 AAAnswer createAAAnswer()
          
 SessionTerminationAnswer createSessionTermAnswer()
          
 void endActivity()
           
 void fetchCurrentState(AAAnswer aaa)
           
 void fetchCurrentState(AARequest aar)
           
 void fetchCurrentState(SessionTerminationAnswer sta)
           
 void fetchCurrentState(SessionTerminationRequest str)
           
 org.jdiameter.api.rx.ServerRxSession getSession()
           
 RxSessionState getState()
           
 void sendAAAnswer(AAAnswer aaa)
          
 void sendAbortSessionRequest(AbortSessionRequest asr)
          
 void sendReAuthRequest(ReAuthRequest rar)
          
 void sendSessionTermAnswer(SessionTerminationAnswer sta)
          
 void setSession(org.jdiameter.api.rx.ServerRxSession session2)
           
 void stateChanged(org.jdiameter.api.app.AppSession source, java.lang.Enum oldState, java.lang.Enum newState)
          
 void stateChanged(java.lang.Enum oldState, java.lang.Enum newState)
          
 java.lang.String toString()
           
 
Methods inherited from class org.mobicents.slee.resource.diameter.rx.RxSessionActivityImpl
doSendMessage, getRxMessageFactory, sendSyncMessage, setDestinationHost, setDestinationRealm, setRxMessageFactory
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.DiameterActivityImpl
equals, getActivityHandle, getDiameterAvpFactory, getDiameterMessageFactory, getSessionId, getSessionListener, hashCode, isTerminateAfterProcessing, isValid, sendMessage, setAvpFactory, setCurrentWorkingSession, setEventListener, setMessageFactory, setSessionListener, setTerminateAfterProcessing
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.rx.RxSessionActivity
getRxMessageFactory, getSessionId
 

Field Detail

session

protected transient org.jdiameter.api.rx.ServerRxSession session

lastAARequest

protected transient AARequest lastAARequest

lastSessionTermRequest

protected transient SessionTerminationRequest lastSessionTermRequest
Constructor Detail

RxServerSessionActivityImpl

public RxServerSessionActivityImpl(net.java.slee.resource.diameter.base.DiameterMessageFactory messageFactory,
                                   net.java.slee.resource.diameter.base.DiameterAvpFactory avpFactory,
                                   org.jdiameter.api.rx.ServerRxSession session,
                                   net.java.slee.resource.diameter.base.events.avp.DiameterIdentity destinationHost,
                                   net.java.slee.resource.diameter.base.events.avp.DiameterIdentity destinationRealm,
                                   org.jdiameter.api.Stack stack)
Method Detail

createAAAnswer

public AAAnswer createAAAnswer()

Specified by:
createAAAnswer in interface RxServerSessionActivity

createSessionTermAnswer

public SessionTerminationAnswer createSessionTermAnswer()

Specified by:
createSessionTermAnswer in interface RxServerSessionActivity

sendAAAnswer

public void sendAAAnswer(AAAnswer aaa)
                  throws java.io.IOException

Specified by:
sendAAAnswer in interface RxServerSessionActivity
Throws:
java.io.IOException

sendSessionTermAnswer

public void sendSessionTermAnswer(SessionTerminationAnswer sta)
                           throws java.io.IOException

Specified by:
sendSessionTermAnswer in interface RxServerSessionActivity
Throws:
java.io.IOException

sendReAuthRequest

public void sendReAuthRequest(ReAuthRequest rar)
                       throws java.io.IOException

Specified by:
sendReAuthRequest in interface RxServerSessionActivity
Throws:
java.io.IOException

sendAbortSessionRequest

public void sendAbortSessionRequest(AbortSessionRequest asr)
                             throws java.io.IOException

Specified by:
sendAbortSessionRequest in interface RxServerSessionActivity
Throws:
java.io.IOException

stateChanged

public void stateChanged(org.jdiameter.api.app.AppSession source,
                         java.lang.Enum oldState,
                         java.lang.Enum newState)

Specified by:
stateChanged in interface org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>

stateChanged

public void stateChanged(java.lang.Enum oldState,
                         java.lang.Enum newState)

Specified by:
stateChanged in interface org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>

fetchCurrentState

public void fetchCurrentState(AARequest aar)

fetchCurrentState

public void fetchCurrentState(SessionTerminationRequest str)

fetchCurrentState

public void fetchCurrentState(AAAnswer aaa)

fetchCurrentState

public void fetchCurrentState(SessionTerminationAnswer sta)

getSession

public org.jdiameter.api.rx.ServerRxSession getSession()

setSession

public void setSession(org.jdiameter.api.rx.ServerRxSession session2)

getState

public RxSessionState getState()
Specified by:
getState in interface RxSessionActivity

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

endActivity

public void endActivity()
Specified by:
endActivity in interface net.java.slee.resource.diameter.base.DiameterActivity
Overrides:
endActivity in class org.mobicents.slee.resource.diameter.base.DiameterActivityImpl


Copyright © 2012. All Rights Reserved.