|
|||||||||
| 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(java.lang.Object o)Compares the given URI with this URI. |
java.lang.String |
getParameter(java.lang.String key)Returns the value of the named parameter, or null if it is not set. |
java.util.Iterator<java.lang.String> |
getParameterNames()Returns an Iterator over the names of all parameters present in this URI. |
java.lang.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(java.lang.String name)Removes the named parameter from this URL. |
void |
setParameter(java.lang.String name, java.lang.String value)Sets the value of the named parameter. |
java.lang.String |
toString()Returns the value of this URI as a String. |
| Method Detail |
|---|
java.lang.String getScheme()
URI, for example "sip", "sips" or "tel".URIjava.lang.String toString()
URI as a String. The result must be appropriately URL escaped.toString in class java.lang.ObjectString value of this URIboolean isSipURI()
java.lang.String getParameter(java.lang.String key)
String indicates flag parameter.key - a String specifying the parameter namejava.lang.NullPointerException - if the key is null.
void setParameter(java.lang.String name,
java.lang.String value)
name - parameter namevalue - new parameter valuejava.lang.NullPointerException - on eithet name or value being null.void removeParameter(java.lang.String name)
name - parameter namejava.util.Iterator<java.lang.String> getParameterNames()
Iterator over the names of all parameters present in this URI.boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the URI which is to be compared with this.true if the two URIs are equal as per the provisions of their specifications.URI clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Java SIP Servlet API 1.1 Reference
Part Number E17883-01