org.mobicents.mscontrol.impl
Class MsSessionImpl

java.lang.Object
  extended by org.mobicents.mscontrol.impl.MsSessionImpl
All Implemented Interfaces:
java.io.Serializable, org.mobicents.mscontrol.MsSession

public class MsSessionImpl
extends java.lang.Object
implements org.mobicents.mscontrol.MsSession

Author:
Oleg Kulikov, amit.bhayani
See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<org.mobicents.mscontrol.MsSessionListener> listeners
           
protected  org.mobicents.mscontrol.MsProvider provider
           
 
Constructor Summary
MsSessionImpl(org.mobicents.mscontrol.MsProvider provider)
          Creates a new instance of MsSessionImpl
 
Method Summary
 void addSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
          (Non Java-doc).
 org.mobicents.mscontrol.MsLink createLink(org.mobicents.media.msc.common.MsLinkMode mode)
          (Non Java-doc).
 org.mobicents.mscontrol.MsConnection createNetworkConnection(java.lang.String trunkName)
          (Non Java-doc).
 void disassociateLink(org.mobicents.mscontrol.MsLink link)
          Releases reference on the specified link.
 void disassociateNetworkConnection(org.mobicents.mscontrol.MsConnection connection)
          Releases reference on the specified connection.
 java.util.List<org.mobicents.mscontrol.MsConnection> getConnections()
           
 java.lang.String getId()
           
 org.mobicents.mscontrol.MsProvider getProvider()
          (Non Java-doc).
 java.util.List<org.mobicents.mscontrol.MsSessionListener> getSessionListeners()
           
 org.mobicents.media.msc.common.MsSessionState getState()
          (Non Java-doc).
 void removeSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
          (Non Java-doc).
 void setSessionStateIdle()
           
 java.lang.String toString()
          Return the string representation of the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

provider

protected org.mobicents.mscontrol.MsProvider provider

listeners

protected java.util.ArrayList<org.mobicents.mscontrol.MsSessionListener> listeners
Constructor Detail

MsSessionImpl

public MsSessionImpl(org.mobicents.mscontrol.MsProvider provider)
Creates a new instance of MsSessionImpl

Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface org.mobicents.mscontrol.MsSession

getProvider

public org.mobicents.mscontrol.MsProvider getProvider()
(Non Java-doc).

Specified by:
getProvider in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.getProvider().

getState

public org.mobicents.media.msc.common.MsSessionState getState()
(Non Java-doc).

Specified by:
getState in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.getState().

createLink

public org.mobicents.mscontrol.MsLink createLink(org.mobicents.media.msc.common.MsLinkMode mode)
(Non Java-doc).

Specified by:
createLink in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.getProvider().

disassociateLink

public void disassociateLink(org.mobicents.mscontrol.MsLink link)
Releases reference on the specified link.

Specified by:
disassociateLink in interface org.mobicents.mscontrol.MsSession
Parameters:
the - link for release reference.

createNetworkConnection

public org.mobicents.mscontrol.MsConnection createNetworkConnection(java.lang.String trunkName)
(Non Java-doc).

Specified by:
createNetworkConnection in interface org.mobicents.mscontrol.MsSession
See Also:
org.mobicents.mscontrol.MsSession#createNetworkConnection().

disassociateNetworkConnection

public void disassociateNetworkConnection(org.mobicents.mscontrol.MsConnection connection)
Releases reference on the specified connection.

Specified by:
disassociateNetworkConnection in interface org.mobicents.mscontrol.MsSession
Parameters:
the - connection for release reference.

setSessionStateIdle

public void setSessionStateIdle()
Specified by:
setSessionStateIdle in interface org.mobicents.mscontrol.MsSession

addSessionListener

public void addSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
(Non Java-doc).

Specified by:
addSessionListener in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.addSessionListener(MsSessionListener).

removeSessionListener

public void removeSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
(Non Java-doc).

Specified by:
removeSessionListener in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.removeSessionListener(MsSessionListener).

toString

public java.lang.String toString()
Return the string representation of the session.

Overrides:
toString in class java.lang.Object
Returns:
text view of the endpoint which includes unique identifier of the session.

getSessionListeners

public java.util.List<org.mobicents.mscontrol.MsSessionListener> getSessionListeners()
Specified by:
getSessionListeners in interface org.mobicents.mscontrol.MsSession

getConnections

public java.util.List<org.mobicents.mscontrol.MsConnection> getConnections()
Specified by:
getConnections in interface org.mobicents.mscontrol.MsSession


Copyright © 2008. All Rights Reserved.