org.mobicents.media.server
Class RtspRtpConnectionImpl

java.lang.Object
  extended by org.mobicents.media.server.RtspRtpConnectionImpl
All Implemented Interfaces:
java.io.Serializable, org.mobicents.media.server.spi.Connection

public class RtspRtpConnectionImpl
extends java.lang.Object
implements org.mobicents.media.server.spi.Connection

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.mobicents.media.server.spi.Connection
CHANNEL_RX, CHANNEL_TX
 
Constructor Summary
RtspRtpConnectionImpl(RtspEndpointImpl endpoint, org.mobicents.media.server.spi.ConnectionMode mode)
           
 
Method Summary
 void addListener(org.mobicents.media.server.spi.ConnectionListener listener)
           
 void addNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
           
 void close()
           
 void error(java.lang.Exception e)
           
 org.mobicents.media.Component getComponent(java.lang.String name, int chanID)
           
 org.mobicents.media.server.spi.Endpoint getEndpoint()
           
 java.lang.String getId()
           
 int getLifeTime()
           
 java.lang.String getLocalDescriptor()
           
 org.mobicents.media.server.spi.ConnectionMode getMode()
           
 long getPacketsReceived(java.lang.String media)
           
 long getPacketsTransmitted(java.lang.String media)
           
 java.lang.String getRemoteDescriptor()
           
 org.mobicents.media.server.spi.ConnectionState getState()
           
 void removeListener(org.mobicents.media.server.spi.ConnectionListener listener)
           
 void removeNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
           
 void rxStart(java.lang.String media)
           
 void rxStop(java.lang.String media)
           
 void setLifeTime(int lifeTime)
           
 void setMode(org.mobicents.media.server.spi.ConnectionMode mode)
           
 void setOtherParty(org.mobicents.media.server.spi.Connection other)
           
 void setOtherParty(java.lang.String media, java.net.InetSocketAddress address)
           
 void setRemoteDescriptor(java.lang.String descriptor)
           
 void txStart(java.lang.String media)
           
 void txStop(java.lang.String media)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtspRtpConnectionImpl

public RtspRtpConnectionImpl(RtspEndpointImpl endpoint,
                             org.mobicents.media.server.spi.ConnectionMode mode)
                      throws org.mobicents.media.server.spi.ResourceUnavailableException
Throws:
org.mobicents.media.server.spi.ResourceUnavailableException
Method Detail

getLocalDescriptor

public java.lang.String getLocalDescriptor()
Specified by:
getLocalDescriptor in interface org.mobicents.media.server.spi.Connection

getPacketsReceived

public long getPacketsReceived(java.lang.String media)
Specified by:
getPacketsReceived in interface org.mobicents.media.server.spi.Connection

getPacketsTransmitted

public long getPacketsTransmitted(java.lang.String media)
Specified by:
getPacketsTransmitted in interface org.mobicents.media.server.spi.Connection

getRemoteDescriptor

public java.lang.String getRemoteDescriptor()
Specified by:
getRemoteDescriptor in interface org.mobicents.media.server.spi.Connection

txStart

public void txStart(java.lang.String media)
Specified by:
txStart in interface org.mobicents.media.server.spi.Connection

rxStart

public void rxStart(java.lang.String media)
Specified by:
rxStart in interface org.mobicents.media.server.spi.Connection

txStop

public void txStop(java.lang.String media)
Specified by:
txStop in interface org.mobicents.media.server.spi.Connection

rxStop

public void rxStop(java.lang.String media)
Specified by:
rxStop in interface org.mobicents.media.server.spi.Connection

setOtherParty

public void setOtherParty(org.mobicents.media.server.spi.Connection other)
                   throws java.io.IOException
Specified by:
setOtherParty in interface org.mobicents.media.server.spi.Connection
Throws:
java.io.IOException

setRemoteDescriptor

public void setRemoteDescriptor(java.lang.String descriptor)
                         throws javax.sdp.SdpException,
                                java.io.IOException,
                                org.mobicents.media.server.spi.ResourceUnavailableException
Specified by:
setRemoteDescriptor in interface org.mobicents.media.server.spi.Connection
Throws:
javax.sdp.SdpException
java.io.IOException
org.mobicents.media.server.spi.ResourceUnavailableException

close

public void close()

error

public void error(java.lang.Exception e)

getId

public java.lang.String getId()
Specified by:
getId in interface org.mobicents.media.server.spi.Connection

getState

public org.mobicents.media.server.spi.ConnectionState getState()
Specified by:
getState in interface org.mobicents.media.server.spi.Connection

getLifeTime

public int getLifeTime()
Specified by:
getLifeTime in interface org.mobicents.media.server.spi.Connection

setLifeTime

public void setLifeTime(int lifeTime)
Specified by:
setLifeTime in interface org.mobicents.media.server.spi.Connection

getMode

public org.mobicents.media.server.spi.ConnectionMode getMode()
Specified by:
getMode in interface org.mobicents.media.server.spi.Connection

setMode

public void setMode(org.mobicents.media.server.spi.ConnectionMode mode)
Specified by:
setMode in interface org.mobicents.media.server.spi.Connection

getEndpoint

public org.mobicents.media.server.spi.Endpoint getEndpoint()
Specified by:
getEndpoint in interface org.mobicents.media.server.spi.Connection

addListener

public void addListener(org.mobicents.media.server.spi.ConnectionListener listener)
Specified by:
addListener in interface org.mobicents.media.server.spi.Connection

addNotificationListener

public void addNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
Specified by:
addNotificationListener in interface org.mobicents.media.server.spi.Connection

removeListener

public void removeListener(org.mobicents.media.server.spi.ConnectionListener listener)
Specified by:
removeListener in interface org.mobicents.media.server.spi.Connection

removeNotificationListener

public void removeNotificationListener(org.mobicents.media.server.spi.NotificationListener listener)
Specified by:
removeNotificationListener in interface org.mobicents.media.server.spi.Connection

getComponent

public org.mobicents.media.Component getComponent(java.lang.String name,
                                                  int chanID)
Specified by:
getComponent in interface org.mobicents.media.server.spi.Connection

setOtherParty

public void setOtherParty(java.lang.String media,
                          java.net.InetSocketAddress address)
                   throws java.io.IOException
Specified by:
setOtherParty in interface org.mobicents.media.server.spi.Connection
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.