|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An Attribute represents an a= fields contained within either a MediaDescription or a SessionDescription. An Attribute can be just an identity/name or a name-value pair. Here are some examples: a=recvonly identifies a rcvonly attribute with just a name a=rtpmap:0 PCMU/8000 identifies the media format 0 has having the value PCMU/8000. If a value is present, it must be preceeded by the : character.
| Method Summary | |
String |
getName()
Returns the name of this attribute |
String |
getValue()
Returns the value of this attribute. |
boolean |
hasValue()
Determines if this attribute has an associated value. |
void |
setName(String name)
Sets the id of this attribute. |
void |
setValue(String value)
Sets the value of this attribute. |
| Methods inherited from interface javax.sdp.Field |
clone, getTypeChar |
| Method Detail |
public String getName()
throws SdpParseException
SdpParseException - if the name is not well formatted.
public void setName(String name)
throws SdpException
name - the string name/id of the attribute.
SdpException - if the name is null
public boolean hasValue()
throws SdpParseException
SdpParseException - if the value is not well formatted.
public String getValue()
throws SdpParseException
SdpParseException - if the value is not well formatted.
public void setValue(String value)
throws SdpException
value - the - attribute value
SdpException - if the value is null.
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||