org.mobicents.slee.resource.diameter.ro
Class RoClientSessionActivityImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.DiameterActivityImpl
      extended by org.mobicents.slee.resource.diameter.ro.RoSessionActivityImpl
          extended by org.mobicents.slee.resource.diameter.ro.RoClientSessionActivityImpl
All Implemented Interfaces:
java.io.Serializable, net.java.slee.resource.diameter.base.DiameterActivity, RoClientSessionActivity, RoSessionActivity, org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>

public class RoClientSessionActivityImpl
extends RoSessionActivityImpl
implements RoClientSessionActivity, org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>

Implementation of RoClientSessionActivity.

Author:
Alexandre Mendonca
See Also:
Serialized Form

Field Summary
protected  RoMessageFactory roMessageFactory
           
protected  org.jdiameter.api.ro.ClientRoSession session
           
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.DiameterActivityImpl
avpFactory, baseListener, destinationHost, destinationRealm, eventListener, handle, logger, messageFactory, sessionId, terminateAfterProcessing
 
Constructor Summary
RoClientSessionActivityImpl(net.java.slee.resource.diameter.base.DiameterMessageFactory messageFactory, net.java.slee.resource.diameter.base.DiameterAvpFactory avpFactory, org.jdiameter.api.ro.ClientRoSession 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
 RoCreditControlRequest createRoCreditControlRequest(net.java.slee.resource.diameter.cca.events.avp.CcRequestType type)
           
 void endActivity()
           
 boolean equals(java.lang.Object obj)
           
 RoSessionState getState()
          Provides session state information.
 int hashCode()
           
 void sendEventRoCreditControlRequest(RoCreditControlRequest ccr)
          Send an event Credit-Control-Request.
 void sendInitialRoCreditControlRequest(RoCreditControlRequest ccr)
          Send an initial Credit-Control-Request.
 void sendReAuthAnswer(net.java.slee.resource.diameter.base.events.ReAuthAnswer rar)
           
 void sendTerminationRoCreditControlRequest(RoCreditControlRequest ccr)
          Send a termination Credit-Control-Request.
 void sendUpdateRoCreditControlRequest(RoCreditControlRequest ccr)
          Send an update (intermediate) Credit-Control-Request.
 void setSession(org.jdiameter.api.ro.ClientRoSession session2)
           
 void stateChanged(org.jdiameter.api.app.AppSession arg0, java.lang.Enum oldState, java.lang.Enum newState)
           
 void stateChanged(java.lang.Enum oldState, java.lang.Enum newState)
           
 
Methods inherited from class org.mobicents.slee.resource.diameter.ro.RoSessionActivityImpl
getRoMessageFactory, sendSyncMessage, setDestinationHost, setDestinationRealm, setRoMessageFactory
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.DiameterActivityImpl
doSendMessage, getActivityHandle, getDiameterAvpFactory, getDiameterMessageFactory, getSessionId, getSessionListener, isTerminateAfterProcessing, isValid, sendMessage, setAvpFactory, setCurrentWorkingSession, setEventListener, setMessageFactory, setSessionListener, setTerminateAfterProcessing
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.ro.RoSessionActivity
getRoMessageFactory, getSessionId
 
Methods inherited from interface net.java.slee.resource.diameter.base.DiameterActivity
getDiameterAvpFactory, getDiameterMessageFactory, sendMessage
 

Field Detail

roMessageFactory

protected transient RoMessageFactory roMessageFactory

session

protected transient org.jdiameter.api.ro.ClientRoSession session
Constructor Detail

RoClientSessionActivityImpl

public RoClientSessionActivityImpl(net.java.slee.resource.diameter.base.DiameterMessageFactory messageFactory,
                                   net.java.slee.resource.diameter.base.DiameterAvpFactory avpFactory,
                                   org.jdiameter.api.ro.ClientRoSession 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)
Parameters:
messageFactory -
avpFactory -
session -
destinationHost -
destinationRealm -
endpoint -
stack -
Method Detail

createRoCreditControlRequest

public RoCreditControlRequest createRoCreditControlRequest(net.java.slee.resource.diameter.cca.events.avp.CcRequestType type)
Specified by:
createRoCreditControlRequest in interface RoClientSessionActivity

sendEventRoCreditControlRequest

public void sendEventRoCreditControlRequest(RoCreditControlRequest ccr)
                                     throws java.io.IOException
Description copied from interface: RoClientSessionActivity
Send an event Credit-Control-Request.

Specified by:
sendEventRoCreditControlRequest in interface RoClientSessionActivity
Parameters:
ccr - the CreditControlRequest to send
Throws:
java.io.IOException - if an error occurred sending the request to the peer

sendInitialRoCreditControlRequest

public void sendInitialRoCreditControlRequest(RoCreditControlRequest ccr)
                                       throws java.io.IOException
Description copied from interface: RoClientSessionActivity
Send an initial Credit-Control-Request.

Specified by:
sendInitialRoCreditControlRequest in interface RoClientSessionActivity
Parameters:
ccr - the RoCreditControlRequest to send
Throws:
java.io.IOException - if an error occurred sending the request to the peer

sendUpdateRoCreditControlRequest

public void sendUpdateRoCreditControlRequest(RoCreditControlRequest ccr)
                                      throws java.io.IOException
Description copied from interface: RoClientSessionActivity
Send an update (intermediate) Credit-Control-Request.

Specified by:
sendUpdateRoCreditControlRequest in interface RoClientSessionActivity
Parameters:
ccr - the RoCreditControlRequest to send
Throws:
java.io.IOException - if an error occurred sending the request to the peer

sendTerminationRoCreditControlRequest

public void sendTerminationRoCreditControlRequest(RoCreditControlRequest ccr)
                                           throws java.io.IOException
Description copied from interface: RoClientSessionActivity
Send a termination Credit-Control-Request.

Specified by:
sendTerminationRoCreditControlRequest in interface RoClientSessionActivity
Parameters:
ccr - the RoCreditControlRequest to send
Throws:
java.io.IOException - if an error occurred sending the request to the peer

sendReAuthAnswer

public void sendReAuthAnswer(net.java.slee.resource.diameter.base.events.ReAuthAnswer rar)
                      throws java.io.IOException
Specified by:
sendReAuthAnswer in interface RoClientSessionActivity
Throws:
java.io.IOException

stateChanged

public void stateChanged(org.jdiameter.api.app.AppSession arg0,
                         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>

setSession

public void setSession(org.jdiameter.api.ro.ClientRoSession session2)

getState

public RoSessionState getState()
Description copied from interface: RoSessionActivity
Provides session state information. CC session must conform to CC FSM as described in section 7 of rfc4006

Specified by:
getState in interface RoSessionActivity
Returns:
instance of CreditControlSessionState

hashCode

public int hashCode()
Overrides:
hashCode in class org.mobicents.slee.resource.diameter.base.DiameterActivityImpl

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class org.mobicents.slee.resource.diameter.base.DiameterActivityImpl

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 © 2011. All Rights Reserved.