public final class URI extends Object implements Comparable, Serializable
Constructor and Description |
---|
URI(String uri) |
URI(String scheme,
String ssp,
String frag) |
URI(String scheme,
String userinfo,
String host,
int port,
String path,
String query,
String fragment) |
URI(String scheme,
String host,
String path,
String fragment) |
URI(String scheme,
String authority,
String path,
String query,
String fragment) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
static URI |
create(String uri) |
boolean |
equals(Object o)
Default object equality (is identity).
|
String |
getAuthority() |
String |
getFragment()
Returns the fragment component.
|
String |
getHost()
Returns the host component.
|
String |
getPath()
Returns the path component.
|
int |
getPort()
Returns the port number.
|
String |
getQuery()
Returns the query component.
|
String |
getRawAuthority()
Returns the authority component in raw form.
|
String |
getRawFragment()
Returns the fragment component in raw form.
|
String |
getRawPath()
Returns the path component in raw form.
|
String |
getRawQuery()
Returns the query component in raw form.
|
String |
getRawSchemeSpecificPart()
Returns the scheme-specific part component in raw form.
|
String |
getRawUserInfo()
Returns the user-info component in raw form.
|
String |
getScheme()
Returns the scheme.
|
String |
getSchemeSpecificPart()
Returns the scheme-specific part component.
|
String |
getUserInfo()
Returns the userinfo.
|
int |
hashCode()
The (default) object hashcode: for transient objects this is simply the
address of the instance in memory, for persistent objects it is the
address at which the instance was first created (maybe in a previous
activation of the VM).
|
boolean |
isAbsolute()
Indicates whether this URI is absolute
|
boolean |
isOpaque()
Indicates whether this URI is opaque
|
URI |
normalize() |
URI |
parseServerAuthority()
Return this uri instance if it has already been determined as a
ServerAuthority Otherwise try to parse it again as a server authority to
produce a URISyntaxException with the proper diagnostic message.
|
URI |
relativize(URI relative) |
URI |
resolve(String relative) |
URI |
resolve(URI relative) |
String |
toASCIIString() |
String |
toString()
Default String representation: overriden by many classes.
|
URL |
toURL() |
public URI(String uri) throws URISyntaxException
URISyntaxException
public URI(String scheme, String ssp, String frag) throws URISyntaxException
URISyntaxException
public URI(String scheme, String userinfo, String host, int port, String path, String query, String fragment) throws URISyntaxException
URISyntaxException
public URI(String scheme, String host, String path, String fragment) throws URISyntaxException
URISyntaxException
public URI(String scheme, String authority, String path, String query, String fragment) throws URISyntaxException
URISyntaxException
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
public boolean equals(Object o)
Object
public String getAuthority()
public String getFragment()
public String getHost()
public String getPath()
public int getPort()
public String getQuery()
public String getRawAuthority()
public String getRawFragment()
public String getRawPath()
public String getRawQuery()
public String getRawSchemeSpecificPart()
public String getRawUserInfo()
public String getScheme()
public String getSchemeSpecificPart()
public String getUserInfo()
public int hashCode()
Object
public boolean isAbsolute()
public boolean isOpaque()
public URI normalize()
public URI parseServerAuthority() throws URISyntaxException
URISyntaxException
public String toASCIIString()
public String toString()
Object
public URL toURL() throws MalformedURLException
MalformedURLException