org.mobicents.media.server
Class RtpConnectionImpl

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

public class RtpConnectionImpl
extends ConnectionImpl
implements RtpSocketListener

Author:
kulikov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.media.server.ConnectionImpl
connectionListeners, rxChannel, txChannel
 
Fields inherited from interface org.mobicents.media.server.spi.Connection
CHANNEL_RX, CHANNEL_TX
 
Constructor Summary
RtpConnectionImpl(EndpointImpl endpoint, org.mobicents.media.server.spi.ConnectionMode mode)
           
 
Method Summary
protected  void close()
           
 void error(java.lang.Exception e)
          This method is call when some exceptions detected.
 java.lang.String getLocalDescriptor()
           
 long getPacketsReceived(java.lang.String media)
           
 long getPacketsTransmitted(java.lang.String media)
           
 java.lang.String getRemoteDescriptor()
           
protected  java.lang.String getSupportedFormatList(org.mobicents.media.Format[] formats)
           
 void setOtherParty(org.mobicents.media.server.spi.Connection other)
           
 void setRemoteDescriptor(java.lang.String descriptor)
           
 java.lang.String toString()
           
 
Methods inherited from class org.mobicents.media.server.ConnectionImpl
addListener, addNotificationListener, getComponent, getComponent, getEndpoint, getId, getIndex, getLifeTime, getMode, getState, removeListener, removeNotificationListener, setLifeTime, setMode, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RtpConnectionImpl

public RtpConnectionImpl(EndpointImpl 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

getRemoteDescriptor

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

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

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

close

protected void close()
Overrides:
close in class ConnectionImpl

error

public void error(java.lang.Exception e)
Description copied from interface: RtpSocketListener
This method is call when some exceptions detected.

Specified by:
error in interface RtpSocketListener
Parameters:
e - the exception detected by RtpSocketAdaptor.

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

getSupportedFormatList

protected java.lang.String getSupportedFormatList(org.mobicents.media.Format[] formats)

toString

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


Copyright © 2009. All Rights Reserved.