All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.sap.SapMedia

java.lang.Object
   |
   +----w3c.www.sap.SapMedia

public class SapMedia
extends Object

Variable Index

 o asbw
Media application specific bandwidth.
 o caddr
Media connection address.
 o caddrtype
Media connection address type.
 o cnaddr
Media number of multicast groups.
 o ctbw
Media total conference bandwidth.
 o cttl
Media connection time to live.
 o hasConnection
Does this media session has asssociated connection data ?
 o infos
Media informations
 o nport
Number of ports.
 o port
Port number.
 o session
The Session having that media.

Constructor Index

 o SapMedia(SapSession, String, int, int, String, String[])
 o SapMedia(SapSession, String, int, String, String[])

Method Index

 o addAttribute(String, String)
Add an attribute to that media description.
 o addInfos(String)
 o getAttributeValue(String)
Get the first value of an attribute.
 o getAttributeValues(String)
Get all mappings of an attribute.
 o getTimeToLive()
Get the max TTL for that media.
 o removeAttribute(String)
Remove an attribute definition.
 o setApplicationSpecificBandwidth(int)
 o setConferenceTotalBandwidth(int)
 o setConnectionData(String, String, InetAddress, int, int)
 o setTimeToLive(int)
Set this media's time to live.
 o toByteArray()

Variables

 o session
 protected SapSession session
The Session having that media.

 o port
 protected int port
Port number.

 o nport
 protected int nport
Number of ports.

 o infos
 public String infos[]
Media informations

 o hasConnection
 protected boolean hasConnection
Does this media session has asssociated connection data ?

 o caddrtype
 protected String caddrtype
Media connection address type.

 o caddr
 protected InetAddress caddr
Media connection address.

 o cttl
 protected int cttl
Media connection time to live.

 o cnaddr
 protected int cnaddr
Media number of multicast groups.

 o ctbw
 protected int ctbw
Media total conference bandwidth.

 o asbw
 protected int asbw
Media application specific bandwidth.

Constructors

 o SapMedia
 public SapMedia(SapSession session,
                 String media,
                 int port,
                 int nport,
                 String transport,
                 String formats[])
 o SapMedia
 public SapMedia(SapSession session,
                 String media,
                 int port,
                 String transport,
                 String formats[])

Methods

 o toByteArray
 public byte[] toByteArray()
 o addInfos
 public void addInfos(String info)
 o setConnectionData
 public void setConnectionData(String ctype,
                               String atype,
                               InetAddress addr,
                               int ttl,
                               int naddr)
 o setConferenceTotalBandwidth
 public void setConferenceTotalBandwidth(int ctbw)
 o setApplicationSpecificBandwidth
 public void setApplicationSpecificBandwidth(int asbw)
 o addAttribute
 public void addAttribute(String key,
                          String val)
Add an attribute to that media description.

Parameters:
key - The name of the attribute.
val - The value for that attribute.
 o removeAttribute
 public void removeAttribute(String key)
Remove an attribute definition. Removes all values for that attribute.

Parameters:
key - The attribute name.
 o getAttributeValue
 public String getAttributeValue(String key)
Get the first value of an attribute.

Parameters:
key - The attribute name.
Returns:
A String instance, or null.
 o getAttributeValues
 public String[] getAttributeValues(String key)
Get all mappings of an attribute.

Parameters:
key - The name of the attribute.
Returns:
A String array, which might have a zero length (to indicate a flag), or null.
 o getTimeToLive
 public int getTimeToLive()
Get the max TTL for that media.

Returns:
A integer ttl value.
 o setTimeToLive
 public void setTimeToLive(int ttl)
Set this media's time to live.

Parameters:
ttl - The new ttl value for that media.

All Packages  Class Hierarchy  This Package  Previous  Next  Index