org.mobicents.media.server.impl.resource.prelay
Class Proxy

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.prelay.Proxy

public class Proxy
extends java.lang.Object

This is an implementation of the Packet Relay proxy.

Author:
kulikov

Field Summary
static org.mobicents.media.Format NOISE_FORMAT
           
 
Constructor Summary
Proxy(java.lang.String name, org.mobicents.media.server.spi.Endpoint endpoint)
          Creates new instance of Packet Relay proxy.
 
Method Summary
 java.lang.String getConnectionID()
          Gets the associated connection.
 org.mobicents.media.MediaSink getInput()
          Gets an input of this proxy.
 org.mobicents.media.MediaSource getOutput()
          Gets an output of this proxy.
 boolean isConnectedTo(org.mobicents.media.MediaSink sink)
          Indicates if the specified media sink is connected to this proxy.
 boolean isConnectedTo(org.mobicents.media.MediaSource source)
          Indicates if the specified media source is connected to this proxy.
 boolean isIsSinkConnected()
          Indicates if a media sink is connected to this proxy.
 boolean isIsSourceConnected()
          Indicates if a media source is connected to this proxy.
 void setConnectionID(java.lang.String connectionID)
          Makes association between Connection and this proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOISE_FORMAT

public static final org.mobicents.media.Format NOISE_FORMAT
Constructor Detail

Proxy

public Proxy(java.lang.String name,
             org.mobicents.media.server.spi.Endpoint endpoint)
Creates new instance of Packet Relay proxy.

Parameters:
name - the name of this proxy.
endpoint - the endpoint executed this proxy.
Method Detail

getInput

public org.mobicents.media.MediaSink getInput()
Gets an input of this proxy.

Returns:
media sink object which acts as input for this proxy.

getOutput

public org.mobicents.media.MediaSource getOutput()
Gets an output of this proxy.

Returns:
media source object which acts as output for this proxy.

getConnectionID

public java.lang.String getConnectionID()
Gets the associated connection.

Returns:
the identifier of the connection.

setConnectionID

public void setConnectionID(java.lang.String connectionID)
Makes association between Connection and this proxy.

Parameters:
connectionID - the identifier of associated connection.

isIsSinkConnected

public boolean isIsSinkConnected()
Indicates if a media sink is connected to this proxy.

Returns:
tue if some media sink is connected to this proxy.

isIsSourceConnected

public boolean isIsSourceConnected()
Indicates if a media source is connected to this proxy.

Returns:
true if some media source is connected to this proxy.

isConnectedTo

public boolean isConnectedTo(org.mobicents.media.MediaSink sink)
Indicates if the specified media sink is connected to this proxy.

Returns:
true if specified media sink is connected to this proxy.

isConnectedTo

public boolean isConnectedTo(org.mobicents.media.MediaSource source)
Indicates if the specified media source is connected to this proxy.

Returns:
true if specified media source is connected to this proxy.


Copyright © 2009. All Rights Reserved.