public class MediaDescriptionImpl extends Object implements MediaDescription
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
attributeFields |
protected Vector |
bandwidthFields |
protected ConnectionField |
connectionField |
protected InformationField |
informationField |
protected KeyField |
keyField |
protected MediaField |
mediaField |
protected PreconditionFields |
preconditionFields
Precondition Mechanism - precondition fields for the media description
|
| Constructor and Description |
|---|
MediaDescriptionImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(AttributeField af)
Add Media Attribute based on an AttributeField value
|
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() |
String |
getDuplexity() |
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.
|
Vector |
getPreconditionFields()
Get attribute fields of segmented precondition
|
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 |
setDuplexity(String duplexity) |
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
|
void |
setPreconditionFields(Vector precondition)
Set the Media Description's Precondition Fields
|
void |
setPreconditions(PreconditionFields precondition)
Set the Media Description's Precondition Fields
|
String |
toString() |
protected MediaField mediaField
protected InformationField informationField
protected ConnectionField connectionField
protected Vector bandwidthFields
protected KeyField keyField
protected Vector attributeFields
protected PreconditionFields preconditionFields
public String encode()
public 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 MediaDescriptionpublic void addAttribute(AttributeField af)
MediaDescriptionAdd Media Attribute based on an AttributeField value
issued by Miguel Freitas (IT) PTInovacaoaddAttribute in interface MediaDescriptionaf - AttributeFieldprotected boolean hasAttribute(String name)
public void setMedia(Media media) throws SdpException
setMedia in interface MediaDescriptionmedia - to setSdpException - if the media field is nullpublic Info getInfo()
getInfo in interface MediaDescriptionpublic void setInfo(Info i) throws SdpException
setInfo in interface MediaDescriptioni - to setSdpException - if the info is nullpublic Connection getConnection()
getConnection in interface MediaDescriptionpublic void setConnection(Connection conn) throws SdpException
setConnection in interface MediaDescriptionconn - to setSdpException - if the connexion is nullpublic Vector getBandwidths(boolean create)
getBandwidths in interface MediaDescriptioncreate - type of the Bandwidth to returnpublic void setBandwidths(Vector bandwidths) throws SdpException
setBandwidths in interface MediaDescriptionbandwidths - type of the Bandwidth object whose value is requestedSdpException - if vector is nullpublic int getBandwidth(String name) throws SdpParseException
getBandwidth in interface MediaDescriptionname - the name of the bandwidth type.SdpParseExceptionpublic 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 MediaDescriptionpublic void setKey(Key key) throws SdpException
setKey in interface MediaDescriptionkey - the encryption key data; depending on method may be nullSdpException - 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 Descriptionpublic void setAttributes(Vector attributes) throws SdpException
setAttributes in interface MediaDescriptionattributes - --
the attribute to addSdpException - --
if the attributes is nullpublic String getAttribute(String name) throws SdpParseException
getAttribute in interface MediaDescriptionname - the name of the attribute.SdpParseExceptionpublic 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 String getDuplexity()
public void setDuplexity(String duplexity)
public 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 addedSdpException - if either vector is null or empty. if the vector sizes are
unequal.public void setPreconditionFields(Vector precondition) throws SdpException
Set the Media Description's Precondition Fields
issued by Miguel Freitas (IT) PTInovacao
setPreconditionFields in interface MediaDescriptionprecondition - Vector containing PreconditionFieldsSdpExceptionpublic void setPreconditions(PreconditionFields precondition)
Set the Media Description's Precondition Fields
issued by Miguel Freitas (IT) PTInovacao
setPreconditions in interface MediaDescriptionprecondition - PreconditionFields parameterpublic Vector getPreconditionFields()
Get attribute fields of segmented precondition
issued by Miguel Freitas (IT) PTInovacao
getPreconditionFields in interface MediaDescriptionCopyright © 2014. All Rights Reserved.