|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 url| Method 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 Fieldclone in class Objectpublic char getType()
getType in interface Fieldpublic 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 uri
public void setURL(URL url)
throws IllegalArgumentException
url - the resource url
IllegalArgumentException - if the url is nullpublic String toString()
toString in interface FieldtoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||