java.net
Class URI
java.lang.Object
|
+--java.net.URI
All Implemented Interfaces:
Comparable, Serializable
Since:Author:- Michael Koch <konqueror@gmx.de>
URI(java.lang.String str)
|
URI(java.lang.String scheme, java.lang.String userInfo, java.lang.String host, int port, java.lang.String path, java.lang.String query, java.lang.String fragment)
|
URI(java.lang.String scheme, java.lang.String authority, java.lang.String path, java.lang.String query, java.lang.String fragment)
|
URI(java.lang.String scheme, java.lang.String host, java.lang.String path, java.lang.String fragment)
|
URI(java.lang.String scheme, java.lang.String ssp, java.lang.String fragment)
|
URI
public URI(java.lang.String str)
Creates an URI from the given string
Parameters:
Throws:
URI
public URI(java.lang.String scheme, java.lang.String ssp, java.lang.String fragment)
Create an URI from the given components
Parameters:
Throws:
URI
public URI(java.lang.String scheme, java.lang.String userInfo, java.lang.String host, int port, java.lang.String path, java.lang.String query, java.lang.String fragment)
Create an URI from the given components
Parameters:
Throws:
URI
public URI(java.lang.String scheme, java.lang.String host, java.lang.String path, java.lang.String fragment)
Create an URI from the given components
Parameters:
Throws:
URI
public URI(java.lang.String scheme, java.lang.String authority, java.lang.String path, java.lang.String query, java.lang.String fragment)
Create an URI from the given components
Parameters:
Throws:
compareTo
public int compareTo(java.lang.Object obj)
Compare the URI with another object that must be an URI too
Parameters:
Throws:
create
public static URI create(java.lang.String str)
Create an URI from the given string
Parameters:
Throws:
equals
public boolean equals(java.lang.Object obj)
Compares the URI with a given object
Parameters:
getAuthority
public String getAuthority()
Returns the decoded authority part of this URI
getFragment
public String getFragment()
Returns the fragment of the URI
getHost
public String getHost()
Returns the hostname of the URI
getPath
public String getPath()
Returns the path of the URI
getPort
public int getPort()
Returns the port number of the URI
getQuery
public String getQuery()
Returns the query of the URI
getRawAuthority
public String getRawAuthority()
Returns the rae authority part of this URI
getRawFragment
public String getRawFragment()
Return the raw fragment part of this URI
getRawPath
public String getRawPath()
Returns the raw path part of this URI
getRawQuery
public String getRawQuery()
Returns the raw query part of this URI
getRawSchemeSpecificPart
public String getRawSchemeSpecificPart()
Returns the raw scheme specific part of this URI.
The scheme-specific part is never undefined, though it may be empty
getRawUserInfo
public String getRawUserInfo()
Returns the raw user info part of this URI
getScheme
public String getScheme()
Returns the scheme of the URI
getSchemeSpecificPart
public String getSchemeSpecificPart()
Returns the decoded scheme specific part of this URI.
getUserInfo
public String getUserInfo()
Returns the decoded user info part of this URI
hashCode
public int hashCode()
Computes the hascode of the URI
isAbsolute
public boolean isAbsolute()
Tells whether this URI is absolute or not
isOpaque
public boolean isOpaque()
Tell whether this URI is opaque or not
normalize
public URI normalize()
Returns a normalizes versions of the URI
parseServerAuthority
public URI parseServerAuthority()
Attempts to parse this URI's authority component, if defined,
into user-information, host, and port components
Throws:
relativize
public URI relativize(java.net.URI uri)
Relativizes the given URI against this URI
Parameters:
Returns:
Throws:
resolve
public URI resolve(java.lang.String str)
Resolves the given URI string against this URI
Parameters:
Returns:
Throws:
resolve
public URI resolve(java.net.URI uri)
Resolves the given URI against this URI
Parameters:
Returns:
Throws:
toASCIIString
public String toASCIIString()
Returns the URI as US-ASCII string
toString
public String toString()
Returns the URI as string
toURL
public URL toURL()
Creates an URL from an URI
Throws: