|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.javax.sdp.MediaDescriptionImpl
public class MediaDescriptionImpl
Fieldementation of Media Description interface.
Constructor Summary | |
---|---|
MediaDescriptionImpl()
|
Method Summary | |
---|---|
void |
addAttribute(AttributeField af)
Add Media Attribute based on an AttributeField value issued by Miguel Freitas (IT) PTInovacao |
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. |
Vector |
getPreconditionFields()
Get attribute fields of segmented precondition issued by Miguel Freitas (IT) PTInovacao |
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 issued by Miguel Freitas (IT) PTInovacao |
void |
setPreconditions(PreconditionFields precondition)
Set the Media Description's Precondition Fields issued by Miguel Freitas (IT) PTInovacao |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MediaDescriptionImpl()
Method Detail |
---|
public String encode()
public String toString()
toString
in class Object
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 MediaDescription
public void addAttribute(AttributeField af)
MediaDescription
Add Media Attribute based on an AttributeField value
issued by Miguel Freitas (IT) PTInovacao
addAttribute
in interface MediaDescription
af
- AttributeFieldpublic void setMedia(Media media) throws SdpException
setMedia
in interface MediaDescription
media
- 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 MediaDescription
i
- to set
SdpException
- if the info is nullpublic Connection getConnection()
getConnection
in interface MediaDescription
public void setConnection(Connection conn) throws SdpException
setConnection
in interface MediaDescription
conn
- to set
SdpException
- if the connexion is nullpublic Vector getBandwidths(boolean create)
getBandwidths
in interface MediaDescription
create
- type of the Bandwidth to return
public void setBandwidths(Vector bandwidths) throws SdpException
setBandwidths
in interface MediaDescription
bandwidths
- type of the Bandwidth object whose value is requested
SdpException
- if vector is nullpublic int getBandwidth(String name) throws SdpParseException
getBandwidth
in interface MediaDescription
name
- the name of the bandwidth type.
SdpParseException
public void setBandwidth(String name, int value) throws SdpException
setBandwidth
in interface MediaDescription
name
- 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 MediaDescription
name
- the name of the bandwidth type.public Key getKey()
getKey
in interface MediaDescription
public void setKey(Key key) throws SdpException
setKey
in interface MediaDescription
key
- the encryption key data; depending on method may be null
SdpException
- if the key is nullpublic Vector getAttributes(boolean create)
getAttributes
in interface MediaDescription
create
- 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 MediaDescription
attributes
- --
the attribute to add
SdpException
- --
if the attributes is nullpublic String getAttribute(String name) throws SdpParseException
getAttribute
in interface MediaDescription
name
- the name of the attribute.
SdpParseException
public void setAttribute(String name, String value) throws SdpException
setAttribute
in interface MediaDescription
name
- the name of the attribute.value
- the value of the named attribute.
SdpException
- if the parameters are nullpublic void setDuplexity(String duplexity)
public void removeAttribute(String name)
removeAttribute
in interface MediaDescription
name
- the name of the attribute.public Vector getMimeTypes() throws SdpException
getMimeTypes
in interface MediaDescription
SdpException
- if there is a problem extracting the parameters.public Vector getMimeParameters() throws SdpException
getMimeParameters
in interface MediaDescription
SdpException
- if there is a problem extracting the parameters.public void addDynamicPayloads(Vector payloadNames, Vector payloadValues) throws SdpException
addDynamicPayloads
in interface MediaDescription
payloadNames
- 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.public void setPreconditionFields(Vector precondition) throws SdpException
Set the Media Description's Precondition Fields
issued by Miguel Freitas (IT) PTInovacao
setPreconditionFields
in interface MediaDescription
precondition
- Vector containing PreconditionFields
SdpException
public void setPreconditions(PreconditionFields precondition)
Set the Media Description's Precondition Fields
issued by Miguel Freitas (IT) PTInovacao
setPreconditions
in interface MediaDescription
precondition
- PreconditionFields parameterpublic Vector getPreconditionFields()
Get attribute fields of segmented precondition
issued by Miguel Freitas (IT) PTInovacao
getPreconditionFields
in interface MediaDescription
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |