|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sdp.MediaDescriptionImpl
public class MediaDescriptionImpl
Fieldementation of Media Description interface.
| Field Summary | |
|---|---|
protected Vector |
attributeFields
|
protected Vector |
bandwidthFields
|
protected ConnectionField |
connectionField
|
protected InformationField |
informationField
|
protected KeyField |
keyField
|
protected MediaField |
mediaField
|
| Constructor Summary | |
|---|---|
MediaDescriptionImpl()
|
|
| Method Summary | |
|---|---|
protected void |
addAttribute(AttributeField af)
|
void |
addBandwidthField(BandwidthField b)
Set the bandwidthField member |
void |
addDynamicPayloads(Vector payloadNames,
Vector payloadValues)
Adds dynamic media types to the description. |
String |
encode()
Encode to a canonical form. |
String |
getAttribute(String name)
Returns the value of the specified attribute. |
Vector |
getAttributeFields()
|
Vector |
getAttributes(boolean create)
Returns the set of attributes for this Description as a Vector of Attribute objects in the order they were parsed. |
int |
getBandwidth(String name)
Returns the integer value of the specified bandwidth name. |
Vector |
getBandwidths(boolean create)
Returns the Bandwidth of the specified type. |
Connection |
getConnection()
Returns the connection information associated with this object. |
ConnectionField |
getConnectionField()
|
Info |
getInfo()
Returns value of the info field (i=) of this object. |
InformationField |
getInformationField()
|
Key |
getKey()
Returns the key data. |
KeyField |
getKeyField()
|
Media |
getMedia()
Return the Media field of the description. |
MediaField |
getMediaField()
|
Vector |
getMimeParameters()
Returns a Vector containing a string of parameters for each of the codecs in this description. |
Vector |
getMimeTypes()
Returns a Vector containing a string indicating the MIME type for each of the codecs in this description. |
protected boolean |
hasAttribute(String name)
|
void |
removeAttribute(String name)
Removes the attribute specified by the value parameter. |
void |
removeBandwidth(String name)
Removes the specified bandwidth type. |
void |
setAttribute(String name,
String value)
Sets the value of the specified attribute |
void |
setAttributeFields(Vector a)
Set the attributeFields member |
void |
setAttributes(Vector attributes)
Adds the specified Attribute to this Description object. |
void |
setBandwidth(String name,
int value)
Sets the value of the specified bandwidth type. |
void |
setBandwidths(Vector bandwidths)
set the value of the Bandwidth with the specified type |
void |
setConnection(Connection conn)
Set the connection data for this entity |
void |
setConnectionField(ConnectionField c)
Set the connectionField member |
void |
setInfo(Info i)
Sets the i= field of this object. |
void |
setInformationField(InformationField i)
Set the informationField member |
void |
setKey(Key key)
Sets encryption key information. |
void |
setKeyField(KeyField k)
Set the keyField member |
void |
setMedia(Media media)
Set the Media field of the description. |
void |
setMediaField(MediaField m)
Set the mediaField member |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected MediaField mediaField
protected InformationField informationField
protected ConnectionField connectionField
protected Vector bandwidthFields
protected KeyField keyField
protected Vector attributeFields
| Constructor Detail |
|---|
public MediaDescriptionImpl()
| Method Detail |
|---|
public String encode()
public String toString()
toString in class Objectpublic MediaField getMediaField()
public InformationField getInformationField()
public ConnectionField getConnectionField()
public KeyField getKeyField()
public Vector getAttributeFields()
public void setMediaField(MediaField m)
public void setInformationField(InformationField i)
public void setConnectionField(ConnectionField c)
public void addBandwidthField(BandwidthField b)
public void setKeyField(KeyField k)
public void setAttributeFields(Vector a)
public Media getMedia()
getMedia in interface MediaDescriptionprotected void addAttribute(AttributeField af)
protected boolean hasAttribute(String name)
public void setMedia(Media media)
throws SdpException
setMedia in interface MediaDescriptionmedia - to set
SdpException - if the media field is nullpublic Info getInfo()
getInfo in interface MediaDescription
public void setInfo(Info i)
throws SdpException
setInfo in interface MediaDescriptioni - to set
SdpException - if the info is nullpublic Connection getConnection()
getConnection in interface MediaDescription
public void setConnection(Connection conn)
throws SdpException
setConnection in interface MediaDescriptionconn - to set
SdpException - if the connexion is nullpublic Vector getBandwidths(boolean create)
getBandwidths in interface MediaDescriptioncreate - type of the Bandwidth to return
public void setBandwidths(Vector bandwidths)
throws SdpException
setBandwidths in interface MediaDescriptionbandwidths - type of the Bandwidth object whose value is requested
SdpException - if vector is null
public int getBandwidth(String name)
throws SdpParseException
getBandwidth in interface MediaDescriptionname - the name of the bandwidth type.
SdpParseException
public void setBandwidth(String name,
int value)
throws SdpException
setBandwidth in interface MediaDescriptionname - the name of the bandwidth type.value - the value of the named bandwidth type.
SdpException - if the name is nullpublic void removeBandwidth(String name)
removeBandwidth in interface MediaDescriptionname - the name of the bandwidth type.public Key getKey()
getKey in interface MediaDescription
public void setKey(Key key)
throws SdpException
setKey in interface MediaDescriptionkey - the encryption key data; depending on method may be null
SdpException - if the key is nullpublic Vector getAttributes(boolean create)
getAttributes in interface MediaDescriptioncreate - specifies whether to return null or a
new empty Vector in case
no attributes exists for this Description
public void setAttributes(Vector attributes)
throws SdpException
setAttributes in interface MediaDescriptionattributes - -- the attribute to add
SdpException - -- if the attributes is null
public String getAttribute(String name)
throws SdpParseException
getAttribute in interface MediaDescriptionname - the name of the attribute.
SdpParseException
public void setAttribute(String name,
String value)
throws SdpException
setAttribute in interface MediaDescriptionname - the name of the attribute.value - the value of the named attribute.
SdpException - if the parameters are nullpublic void removeAttribute(String name)
removeAttribute in interface MediaDescriptionname - the name of the attribute.
public Vector getMimeTypes()
throws SdpException
getMimeTypes in interface MediaDescriptionSdpException - if there is a problem extracting the parameters.
public Vector getMimeParameters()
throws SdpException
getMimeParameters in interface MediaDescriptionSdpException - if there is a problem extracting the parameters.
public void addDynamicPayloads(Vector payloadNames,
Vector payloadValues)
throws SdpException
addDynamicPayloads in interface MediaDescriptionpayloadNames - a Vector of String - each one the name of a dynamic payload
to be added (usually an integer larger
than SdpConstants.AVP_DYNAMIC_MIN).payloadValues - a Vector of String - each contains the value describing
the correlated dynamic payloads to be added
SdpException - if either vector is null or empty.
if the vector sizes are unequal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||