Method Summary |
|
protected void | addAttribute(AttributeField af) Adds a new attirbute to the list. |
public void | addBandwidthField(BandwidthField b) Sets the bandwidth field member. |
public void | addDynamicPayloads(Vector payloadNames, Vector payloadValues) Adds dynamic media types to the description. |
public String | encode() Encodes to a canonical form. |
public String | getAttribute(String name) Returns the value of the specified attribute. |
public Vector | getAttributeFields() Gets the attributes filed. |
public Vector | getAttributes(boolean create) Returns the set of attributes for this Description as a
Vector of Attribute objects in the order they were parsed. |
public int | getBandwidth(String name) Returns the integer value of the specified bandwidth name. |
public Vector | getBandwidths(boolean create) Returns the Bandwidth of the specified type. |
public ConnectionField | getConnection() Returns the connection information associated with this object. |
public ConnectionField | getConnectionField() |
public InformationField | getInfo() Returns value of the info field (i=) of this object. |
public InformationField | getInformationField() Gets the information field. |
public KeyField | getKey() Returns the key data. |
public KeyField | getKeyField() Gets the key field. |
public MediaField | getMedia() Returns the Media field of the description. |
public MediaField | getMediaField() |
public Vector | getMimeParameters() Returns a Vector containing a string of parameters for each of
the codecs in this description.
A parameter string is computed for each codec.
The parameter string is computed in the following fashion.
The rate is extracted from the rtpmap or static data.
The number of channels is extracted from the rtpmap or static data.
The ptime is extracted from the ptime attribute.
The maxptime is extracted from the maxptime attribute.
Any additional parameters are extracted from the ftmp attribute.
throws: SdpException - if there is a problem extracting the parameters. |
public Vector | getMimeTypes() Returns a Vector containing a string indicating the MIME type
for each of the codecs in this description.
A MIME value is computed for each codec in the media description.
The MIME type is computed in the following fashion:
The type is the mediaType from the media field.
The subType is determined by the protocol.
The result is computed as the string of the form:
type + '/' + subType
The subType portion is computed in the following fashion.
RTP/AVP
the subType is returned as the codec name. |
protected boolean | hasAttribute(String name) Checks if named attribute exists. |
public void | removeAttribute(String name) Removes the attribute specified by the value parameter. |
public void | removeBandwidth(String name) Removes the specified bandwidth type. |
public void | setAttribute(String name, String value) |
public void | setAttributeFields(Vector a) Sets the attribute fields member. |
public void | setAttributes(Vector attributes) Adds the specified Attribute to this Description object. |
public void | setBandwidth(String name, int value) Sets the value of the specified bandwidth type. |
public void | setBandwidths(Vector bandwidths) Sets the value of the Bandwidth with the specified type. |
public void | setConnection(ConnectionField conn) Sets the connection data for this entity. |
public void | setConnectionField(ConnectionField c) Sets the connection field member. |
public void | setInfo(InformationField i) Sets the i= field of this object. |
public void | setInformationField(InformationField i) Sets the information field member. |
public void | setKey(KeyField key) Sets encryption key information. |
public void | setKeyField(KeyField k) Sets the key field member. |
public void | setMedia(MediaField media) Sets the Media field of the description. |
public void | setMediaField(MediaField m) Sets the media field member. |
public String | toString() Returns encoded text. |