|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.Uri
public class Uri
An Uri represents a u=<field value> field contained in a SDP message. The uri field should be a pointer to additional information about the conference.
Field Summary | |
---|---|
protected URL |
url
The uri value |
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 | |
---|---|
protected |
Uri()
Creates a new Uri. |
|
Uri(String url)
Creates a new Uri. |
|
Uri(URL url)
Creates a new Uri. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this field. |
char |
getType()
Returns the type character for the field. |
String |
getURL()
Returns the resource url. |
static Uri |
parse(String field)
Parse an input string and constructs the equivalent uri field. |
void |
setURL(String url)
Sets the uri value. |
void |
setURL(URL url)
Sets the uri value. |
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 |
Field Detail |
---|
protected URL url
Constructor Detail |
---|
protected Uri()
public Uri(String url) throws SDPException
url
- the uri value
SDPException
- if the value specified is a not valid uripublic Uri(URL url)
url
- the resource urlMethod Detail |
---|
public static Uri 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 getURL()
public void setURL(String url) throws IllegalArgumentException, SDPException
url
- the resource url
IllegalArgumentException
- if the url is null
SDPException
- if the value specified is a not valid uripublic void setURL(URL url) throws IllegalArgumentException
url
- the resource url
IllegalArgumentException
- if the url is nullpublic 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 |