org.mobicents.slee.resource.parlay.fw
Class FwSessionImpl

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.fw.FwSessionImpl
All Implemented Interfaces:
java.util.EventListener, TSMBeanListener, SABeanListener, FwSession

public class FwSessionImpl
extends java.lang.Object
implements FwSession, TSMBeanListener, SABeanListener

Implementation class for FwSession


Field Summary
protected  TokenAndServiceMap tokenAndServiceMap
           
protected  TSMBean tsmBean
           
 
Constructor Summary
FwSessionImpl(FwSessionProperties fwSessionProperties)
           
 
Method Summary
 void addFwSessionListener(FwSessionListener listener)
          Adds an application listener.
 void authenticate()
          This method authenticates a client with the Parlay framework.
 void endAccess(org.csapi.fw.TpProperty[] endAccessProperties)
          This method ends a client's access session with the Parlay Framework
 FwSessionProperties getFwSessionProperties()
           
 org.omg.CORBA.ORB getORB()
          Returns a reference to the ORB used by this FwSession.
 org.omg.PortableServer.POA getRootPOA()
          Returns the root poa
 ServiceAndToken getService(java.lang.String serviceTypeName, org.csapi.fw.TpServiceProperty[] serviceProperties)
          Returns a reference to a Service interface.
 void init()
          Initialises FwSession, only use when created with default constructor.
 void releaseService(ServiceAndToken service)
          Releses the specified Service.
 void removeFwSessionListener(FwSessionListener listener)
          Removes an application listener.
 void shutdown()
          This method will shutdown all resources used by this object.
 void terminateAccess(org.mobicents.csapi.jr.slee.fw.TerminateAccessEvent event)
          Called due to a gateway initiated access termination.
 void terminateServiceAgreement(org.mobicents.csapi.jr.slee.fw.TerminateServiceAgreementEvent event)
          Called due to a gateway initiated service agreement termination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mobicents.slee.resource.parlay.fw.FwSession
equals, hashCode, toString
 

Field Detail

tokenAndServiceMap

protected final transient TokenAndServiceMap tokenAndServiceMap

tsmBean

protected TSMBean tsmBean
Constructor Detail

FwSessionImpl

public FwSessionImpl(FwSessionProperties fwSessionProperties)
Parameters:
fwSessionProperties -
Method Detail

init

public void init()
          throws FwSessionException
Description copied from interface: FwSession
Initialises FwSession, only use when created with default constructor.

Specified by:
init in interface FwSession
Throws:
FwSessionException

addFwSessionListener

public void addFwSessionListener(FwSessionListener listener)
Description copied from interface: FwSession
Adds an application listener.

Specified by:
addFwSessionListener in interface FwSession

removeFwSessionListener

public void removeFwSessionListener(FwSessionListener listener)
Description copied from interface: FwSession
Removes an application listener.

Specified by:
removeFwSessionListener in interface FwSession

authenticate

public void authenticate()
                  throws FwSessionException
Description copied from interface: FwSession
This method authenticates a client with the Parlay framework.

Specified by:
authenticate in interface FwSession
Throws:
FwSessionException

endAccess

public void endAccess(org.csapi.fw.TpProperty[] endAccessProperties)
               throws FwSessionException
Description copied from interface: FwSession
This method ends a client's access session with the Parlay Framework

Specified by:
endAccess in interface FwSession
Parameters:
endAccessProperties - properties to be passed to gateway framework on endAccess.
Throws:
FwSessionException

getService

public ServiceAndToken getService(java.lang.String serviceTypeName,
                                  org.csapi.fw.TpServiceProperty[] serviceProperties)
                           throws FwSessionException
Description copied from interface: FwSession
Returns a reference to a Service interface.

Specified by:
getService in interface FwSession
Returns:
a service and token for the selected service
Throws:
FwSessionException

shutdown

public void shutdown()
Description copied from interface: FwSession
This method will shutdown all resources used by this object.

Specified by:
shutdown in interface FwSession

getFwSessionProperties

public FwSessionProperties getFwSessionProperties()
Specified by:
getFwSessionProperties in interface FwSession
Returns:

getORB

public org.omg.CORBA.ORB getORB()
Description copied from interface: FwSession
Returns a reference to the ORB used by this FwSession.

Specified by:
getORB in interface FwSession
Returns:

getRootPOA

public org.omg.PortableServer.POA getRootPOA()
Description copied from interface: FwSession
Returns the root poa

Specified by:
getRootPOA in interface FwSession
Returns:

releaseService

public void releaseService(ServiceAndToken service)
                    throws FwSessionException
Description copied from interface: FwSession
Releses the specified Service.

Specified by:
releaseService in interface FwSession
Throws:
FwSessionException

terminateAccess

public void terminateAccess(org.mobicents.csapi.jr.slee.fw.TerminateAccessEvent event)
Description copied from interface: TSMBeanListener
Called due to a gateway initiated access termination.

Specified by:
terminateAccess in interface TSMBeanListener
Parameters:
event - The event emitted from the TSMBean.

terminateServiceAgreement

public void terminateServiceAgreement(org.mobicents.csapi.jr.slee.fw.TerminateServiceAgreementEvent event)
Description copied from interface: SABeanListener
Called due to a gateway initiated service agreement termination.

Specified by:
terminateServiceAgreement in interface SABeanListener
Parameters:
event - The event emitted from the SABean.


Copyright © 2009. All Rights Reserved.