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

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.resource.Proxy
All Implemented Interfaces:
java.io.Serializable, org.mobicents.media.Component, org.mobicents.media.Inlet, org.mobicents.media.Outlet

public class Proxy
extends BaseComponent
implements org.mobicents.media.Inlet, org.mobicents.media.Outlet

Implements media proxy component. This component can be used to join media source and media.

Author:
kulikov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.BaseComponent
format
 
Constructor Summary
Proxy(java.lang.String name)
          Creates new instance of the proxy.
 
Method Summary
 void connect(org.mobicents.media.MediaSink sink)
          (Non Java-doc).
 void connect(org.mobicents.media.MediaSource source)
          (Non Java-doc).
 void disconnect(org.mobicents.media.MediaSink sink)
          (Non Java-doc).
 void disconnect(org.mobicents.media.MediaSource source)
          (Non Java-doc).
 org.mobicents.media.Format[] getFormats()
          Gets the list of currently supported formats.
 org.mobicents.media.MediaSink getInput()
          (Non Java-doc).
 org.mobicents.media.MediaSource getOutput()
          (Non Java-doc).
 void setFormat(org.mobicents.media.Format[] formats)
          Chanhes the list of supportd formats.
 void start()
          (Non Java-doc).
 void stop()
          (Non Java-doc).
 
Methods inherited from class org.mobicents.media.server.impl.BaseComponent
addListener, getConnection, getEndpoint, getFormat, getId, getInterface, getName, removeListener, resetStats, sendEvent, setConnection, setEndpoint, subset, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getFormat, getId, getInterface, getName, removeListener, resetStats, setConnection, setEndpoint
 

Constructor Detail

Proxy

public Proxy(java.lang.String name)
Creates new instance of the proxy.

Parameters:
name - the name of the component
Method Detail

getFormats

public org.mobicents.media.Format[] getFormats()
Gets the list of currently supported formats.

Returns:
list of supported formats;

setFormat

public void setFormat(org.mobicents.media.Format[] formats)
Chanhes the list of supportd formats. By default Proxy can transmit any formats but user can restrict transition capabilities

Parameters:
formats - the list of supported formats.

start

public void start()
(Non Java-doc).

See Also:
org.mobicents.media.Component#start()

stop

public void stop()
(Non Java-doc).

See Also:
org.mobicents.media.Component#stop()

getInput

public org.mobicents.media.MediaSink getInput()
(Non Java-doc).

Specified by:
getInput in interface org.mobicents.media.Inlet
See Also:
Inlet.getInput().

getOutput

public org.mobicents.media.MediaSource getOutput()
(Non Java-doc).

Specified by:
getOutput in interface org.mobicents.media.Outlet
See Also:
org.mobicents.media.Inlet#getOutput().

connect

public void connect(org.mobicents.media.MediaSource source)
(Non Java-doc).

Specified by:
connect in interface org.mobicents.media.Inlet
See Also:
Inlet.connect(org.mobicents.media.MediaSource)

disconnect

public void disconnect(org.mobicents.media.MediaSource source)
(Non Java-doc).

Specified by:
disconnect in interface org.mobicents.media.Inlet
See Also:
Inlet.disconnect(org.mobicents.media.MediaSource)

connect

public void connect(org.mobicents.media.MediaSink sink)
(Non Java-doc).

Specified by:
connect in interface org.mobicents.media.Outlet
See Also:
org.mobicents.media.Inlet#connect(org.mobicents.media.MediaSink)

disconnect

public void disconnect(org.mobicents.media.MediaSink sink)
(Non Java-doc).

Specified by:
disconnect in interface org.mobicents.media.Outlet
See Also:
org.mobicents.media.Inlet#connect(org.mobicents.media.MediaSink)


Copyright © 2010. All Rights Reserved.