|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.SessionName
public class SessionName
A SessionName represents a s=<field value> field contained in a SDP message. This field identifies the name of the session.
Field Summary |
---|
Fields inherited from interface net.sourceforge.jsdp.Field |
---|
ATTRIBUTE_FIELD, BANDWITH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, END_OF_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, REPEAT_TIME_FIELD, SESSION_NAME_FIELD, TIME_FIELD, TIMEZONE_FIELD, URI_FIELD, VERSION_FIELD |
Constructor Summary | |
---|---|
SessionName()
Creates a new SessionName. |
|
SessionName(String value)
Creates a new SessionName. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this field. |
char |
getType()
Returns the type character for the field. |
String |
getValue()
Returns the session name. |
static SessionName |
parse(String field)
Parse an input string and constructs the equivalent session name field. |
void |
setValue(String value)
Sets the session name. |
String |
toString()
Returns a string representation of the field. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SessionName()
public SessionName(String value) throws SDPException
value
- the name of the session
SDPException
- if the characters of the session name are not
allowedMethod Detail |
---|
public static SessionName parse(String field) throws SDPParseException
field
- the string to parse
SDPParseException
- if an error occurs while parsingpublic Object clone()
clone
in interface Field
clone
in class Object
public char getType()
getType
in interface Field
public String getValue()
public void setValue(String value) throws SDPException
value
- the session name
SDPException
- if the characters of the session name are not
allowedpublic String toString()
toString
in interface Field
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |