|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sdp.SessionDescriptionImpl
public class SessionDescriptionImpl
Implementation of the SessionDescription interface.
| Field Summary | |
|---|---|
protected Vector |
attributesList
|
protected Vector |
bandwidthList
|
protected ConnectionField |
connectionImpl
|
protected Vector |
emailList
|
protected InformationField |
infoImpl
|
protected KeyField |
keyImpl
|
protected Vector |
mediaDescriptions
|
protected OriginField |
originImpl
|
protected Vector |
phoneList
|
protected SessionNameField |
sessionNameImpl
|
protected Vector |
timeDescriptions
|
protected URIField |
uriImpl
|
protected ProtoVersionField |
versionImpl
|
protected Vector |
zoneAdjustments
|
| Constructor Summary | |
|---|---|
SessionDescriptionImpl()
Creates new SessionDescriptionImpl |
|
| Method Summary | |
|---|---|
void |
addField(SDPField sdpField)
|
Object |
clone()
Public clone declaration. |
String |
getAttribute(String name)
Returns the value of the specified attribute. |
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. |
Vector |
getEmails(boolean create)
Returns an email address to contact for further information about the session. |
Info |
getInfo()
Returns value of the info field (i=) of this object. |
Key |
getKey()
Returns the key data. |
Vector |
getMediaDescriptions(boolean create)
Adds a MediaDescription to the session description. |
Origin |
getOrigin()
Returns information about the originator of the session. |
Vector |
getPhones(boolean create)
Returns a phone number to contact for further information about the session. |
SessionName |
getSessionName()
Returns the name of the session. |
Vector |
getTimeDescriptions(boolean create)
Returns a TimeField indicating the start, stop, repetition and time zone information of the session. |
URI |
getURI()
Returns a uri to the location of more details about the session. |
Version |
getVersion()
Returns the version of SDP in use. |
Vector |
getZoneAdjustments(boolean create)
Returns the time zone adjustments for the Session |
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 |
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 bandwidthList)
set the value of the Bandwidth with the specified type. |
void |
setConnection(Connection conn)
Set the connection data for this entity. |
void |
setEmails(Vector emails)
Sets a an email address to contact for further information about the session. |
void |
setInfo(Info i)
Sets the i= field of this object. |
void |
setKey(Key key)
Sets encryption key information. |
void |
setMediaDescriptions(Vector mediaDescriptions)
Removes all MediaDescriptions from the session description. |
void |
setOrigin(Origin origin)
Sets information about the originator of the session. |
void |
setPhones(Vector phones)
Sets a phone number to contact for further information about the session. |
void |
setSessionName(SessionName sessionName)
Sets the name of the session. |
void |
setTimeDescriptions(Vector times)
Sets a TimeField indicating the start, stop, repetition and time zone information of the session. |
void |
setURI(URI uri)
Sets the uri to the location of more details about the session. |
void |
setVersion(Version v)
Sets the version of SDP in use. |
void |
setZoneAdjustments(Vector zoneAdjustments)
Sets the time zone adjustment for the TimeField. |
byte[] |
toBytes()
|
String |
toString()
Returns the canonical string representation of the current SessionDescrption. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ProtoVersionField versionImpl
protected OriginField originImpl
protected SessionNameField sessionNameImpl
protected InformationField infoImpl
protected URIField uriImpl
protected ConnectionField connectionImpl
protected KeyField keyImpl
protected Vector timeDescriptions
protected Vector mediaDescriptions
protected Vector zoneAdjustments
protected Vector emailList
protected Vector phoneList
protected Vector bandwidthList
protected Vector attributesList
| Constructor Detail |
|---|
public SessionDescriptionImpl()
| Method Detail |
|---|
public void addField(SDPField sdpField)
throws ParseException
ParseException
public Object clone()
throws CloneNotSupportedException
clone in interface SessionDescriptionclone in class ObjectCloneNotSupportedException - if clone method is not supportedpublic Version getVersion()
getVersion in interface SessionDescription
public void setVersion(Version v)
throws SdpException
setVersion in interface SessionDescriptionv - version - the integer version.
SdpException - if the version is nullpublic Origin getOrigin()
getOrigin in interface SessionDescription
public void setOrigin(Origin origin)
throws SdpException
setOrigin in interface SessionDescriptionorigin - origin - the originator data.
SdpException - if the origin is nullpublic SessionName getSessionName()
getSessionName in interface SessionDescription
public void setSessionName(SessionName sessionName)
throws SdpException
setSessionName in interface SessionDescriptionsessionName - name - the session name.
SdpException - if the sessionName is nullpublic Info getInfo()
getInfo in interface SessionDescription
public void setInfo(Info i)
throws SdpException
setInfo in interface SessionDescriptioni - s - new i= value; if null removes the field
SdpException - if the info is nullpublic URI getURI()
getURI in interface SessionDescription
public void setURI(URI uri)
throws SdpException
setURI in interface SessionDescriptionuri - uri - the uri.
SdpException - if the uri is null
public Vector getEmails(boolean create)
throws SdpParseException
getEmails in interface SessionDescriptioncreate - boolean to set
SdpException
SdpParseException
public void setEmails(Vector emails)
throws SdpException
setEmails in interface SessionDescriptionemails - email - the email address.
SdpException - if the vector is null
public Vector getPhones(boolean create)
throws SdpException
getPhones in interface SessionDescriptioncreate - boolean to set
SdpException
public void setPhones(Vector phones)
throws SdpException
setPhones in interface SessionDescriptionphones - phone - the phone number.
SdpException - if the vector is null
public Vector getTimeDescriptions(boolean create)
throws SdpException
getTimeDescriptions in interface SessionDescriptioncreate - boolean to set
SdpException
public void setTimeDescriptions(Vector times)
throws SdpException
setTimeDescriptions in interface SessionDescriptiontimes - time - the TimeField.
SdpException - if the vector is null
public Vector getZoneAdjustments(boolean create)
throws SdpException
getZoneAdjustments in interface SessionDescriptioncreate - boolean to set
SdpException
public void setZoneAdjustments(Vector zoneAdjustments)
throws SdpException
setZoneAdjustments in interface SessionDescriptionzoneAdjustments - zoneAdjustments - a Hashtable containing the zone
adjustments, where the key
is the Adjusted Time Zone and the value is the offset.
SdpException - if the vector is nullpublic Connection getConnection()
getConnection in interface SessionDescription
public void setConnection(Connection conn)
throws SdpException
setConnection in interface SessionDescriptionconn - to set
SdpException - if the parameter is nullpublic Vector getBandwidths(boolean create)
getBandwidths in interface SessionDescriptioncreate - type - type of the Bandwidth to return
public void setBandwidths(Vector bandwidthList)
throws SdpException
setBandwidths in interface SessionDescriptionbandwidthList - to set
SdpException - if the vector is null
public int getBandwidth(String name)
throws SdpParseException
getBandwidth in interface SessionDescriptionname - name - the name of the bandwidth type
SdpParseException
public void setBandwidth(String name,
int value)
throws SdpException
setBandwidth in interface SessionDescriptionname - name - the name of the bandwidth type.value - value - the value of the named bandwidth type.
SdpException - if the name is nullpublic void removeBandwidth(String name)
removeBandwidth in interface SessionDescriptionname - name - the name of the bandwidth typepublic Key getKey()
getKey in interface SessionDescription
public void setKey(Key key)
throws SdpException
setKey in interface SessionDescriptionkey - key - the encryption key data; depending on method may be null
SdpException - if the parameter is null
public String getAttribute(String name)
throws SdpParseException
getAttribute in interface SessionDescriptionname - name - the name of the attribute
SdpParseExceptionpublic Vector getAttributes(boolean create)
getAttributes in interface SessionDescriptioncreate - create - specifies whether to return null or a new empty
Vector in case no
attributes exists for this Description
public void removeAttribute(String name)
removeAttribute in interface SessionDescriptionname - name - the name of the attribute
public void setAttribute(String name,
String value)
throws SdpException
setAttribute in interface SessionDescriptionname - name - the name of the attribute.value - value - the value of the named attribute.
SdpException - if the name or the value is null
public void setAttributes(Vector attributes)
throws SdpException
setAttributes in interface SessionDescriptionattributes - - the attribute to add
SdpException - if the vector is null
public Vector getMediaDescriptions(boolean create)
throws SdpException
getMediaDescriptions in interface SessionDescriptioncreate - boolean to set
SdpException
public void setMediaDescriptions(Vector mediaDescriptions)
throws SdpException
setMediaDescriptions in interface SessionDescriptionmediaDescriptions - to set
SdpException - if the parameter is nullpublic String toString()
toString in class Objectpublic byte[] toBytes()
toBytes in interface SessionDescription
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||