public interface URI extends Cloneable, Serializable
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.
| Modifier and Type | Method and Description |
|---|---|
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. |
Set<String> |
getParameterNameSet()
Returns an immutable
Set of 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. |
String getScheme()
URI,
for example "sip", "sips" or "tel".URIString toString()
URI as a String.
The result must be appropriately URL escaped.boolean isSipURI()
String getParameter(String key)
String indicates flag parameter.key - a String specifying the parameter nameNullPointerException - if the key is null.void setParameter(String name, String value)
name - parameter namevalue - new parameter valueNullPointerException - on eithet name or value being null.void removeParameter(String name)
name - parameter nameIterator<String> getParameterNames()
Iterator over the names of all parameters
present in this URI.Set<String> getParameterNameSet()
Set of the names of all parameters
present in this URI.Set of strings containing the names of this URLs
parametersboolean equals(Object o)
URI clone()
Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.