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
-
asbw
- Media application specific bandwidth.
-
caddr
- Media connection address.
-
caddrtype
- Media connection address type.
-
cnaddr
- Media number of multicast groups.
-
ctbw
- Media total conference bandwidth.
-
cttl
- Media connection time to live.
-
hasConnection
- Does this media session has asssociated connection data ?
-
infos
- Media informations
-
nport
- Number of ports.
-
port
- Port number.
-
session
- The Session having that media.
-
SapMedia(SapSession, String, int, int, String, String[])
-
-
SapMedia(SapSession, String, int, String, String[])
-
-
addAttribute(String, String)
- Add an attribute to that media description.
-
addInfos(String)
-
-
getAttributeValue(String)
- Get the first value of an attribute.
-
getAttributeValues(String)
- Get all mappings of an attribute.
-
getTimeToLive()
- Get the max TTL for that media.
-
removeAttribute(String)
- Remove an attribute definition.
-
setApplicationSpecificBandwidth(int)
-
-
setConferenceTotalBandwidth(int)
-
-
setConnectionData(String, String, InetAddress, int, int)
-
-
setTimeToLive(int)
- Set this media's time to live.
-
toByteArray()
-
session
protected SapSession session
- The Session having that media.
port
protected int port
- Port number.
nport
protected int nport
- Number of ports.
infos
public String infos[]
- Media informations
hasConnection
protected boolean hasConnection
- Does this media session has asssociated connection data ?
caddrtype
protected String caddrtype
- Media connection address type.
caddr
protected InetAddress caddr
- Media connection address.
cttl
protected int cttl
- Media connection time to live.
cnaddr
protected int cnaddr
- Media number of multicast groups.
ctbw
protected int ctbw
- Media total conference bandwidth.
asbw
protected int asbw
- Media application specific bandwidth.
SapMedia
public SapMedia(SapSession session,
String media,
int port,
int nport,
String transport,
String formats[])
SapMedia
public SapMedia(SapSession session,
String media,
int port,
String transport,
String formats[])
toByteArray
public byte[] toByteArray()
addInfos
public void addInfos(String info)
setConnectionData
public void setConnectionData(String ctype,
String atype,
InetAddress addr,
int ttl,
int naddr)
setConferenceTotalBandwidth
public void setConferenceTotalBandwidth(int ctbw)
setApplicationSpecificBandwidth
public void setApplicationSpecificBandwidth(int asbw)
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.
removeAttribute
public void removeAttribute(String key)
- Remove an attribute definition.
Removes all values for that attribute.
- Parameters:
- key - The attribute name.
getAttributeValue
public String getAttributeValue(String key)
- Get the first value of an attribute.
- Parameters:
- key - The attribute name.
- Returns:
- A String instance, or null.
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.
getTimeToLive
public int getTimeToLive()
- Get the max TTL for that media.
- Returns:
- A integer ttl value.
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