|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface URI
Base interface for any type of URI. These are used in the request line of SIP requests to identify the callee and also in Contact, From, and To headers. The only feature common to all URIs is that they can be represented as strings beginning with a token identifying the scheme of the URI followed by a colon followed by a scheme-specific part. The generic syntax of URIs is defined in RFC 2396.
| Method Summary | |
|---|---|
URI |
clone()
Returns a clone of this URI. |
boolean |
equals(Object o)
Compares the given URI with this URI. |
String |
getParameter(String key)
Returns the value of the named parameter, or null if it is not set. |
Iterator<String> |
getParameterNames()
Returns an Iterator over the names of all parameters present in this URI. |
String |
getScheme()
Returns the scheme of this URI, for example "sip", "sips" or "tel". |
boolean |
isSipURI()
Returns true if the scheme is "sip" or "sips", false otherwise. |
void |
removeParameter(String name)
Removes the named parameter from this URL. |
void |
setParameter(String name,
String value)
Sets the value of the named parameter. |
String |
toString()
Returns the value of this URI as a String. |
| Method Detail |
|---|
URI clone()
boolean equals(Object o)
equals in class ObjectString getParameter(String key)
Iterator<String> getParameterNames()
String getScheme()
boolean isSipURI()
void removeParameter(String name)
void setParameter(String name,
String value)
String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||