java.net
Class URI

java.lang.Object
  |
  +--java.net.URI
All Implemented Interfaces:
Comparable, Serializable

public final synchronized class URI
extends Object
implements Comparable, Serializable

See Also:
Serialized Form

Constructor Summary
URI(String)
           
URI(String, String, String)
           
URI(String, String, String, int, String, String, String)
           
URI(String, String, String, String)
           
URI(String, String, String, String, String)
           
 
Method Summary
 int compareTo(Object)
           
static URI create(String)
           
 boolean equals(Object)
           
 String getAuthority()
           
 String getFragment()
           
 String getHost()
           
 String getPath()
           
 int getPort()
           
 String getQuery()
           
 String getRawAuthority()
           
 String getRawFragment()
           
 String getRawPath()
           
 String getRawQuery()
           
 String getRawSchemeSpecificPart()
           
 String getRawUserInfo()
           
 String getScheme()
           
 String getSchemeSpecificPart()
           
 String getUserInfo()
           
 int hashCode()
           
 boolean isAbsolute()
           
 boolean isOpaque()
           
 URI normalize()
           
 URI parseServerAuthority()
           
 URI relativize(URI)
           
 URI resolve(String)
           
 URI resolve(URI)
           
 String toASCIIString()
           
 String toString()
          Returns the empty string.
 URL toURL()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait
 

Constructor Detail

URI

public URI(String)
    throws URISyntaxException

URI

public URI(String,
           String,
           String,
           int,
           String,
           String,
           String)
    throws URISyntaxException

URI

public URI(String,
           String,
           String,
           String,
           String)
    throws URISyntaxException

URI

public URI(String,
           String,
           String,
           String)
    throws URISyntaxException

URI

public URI(String,
           String,
           String)
    throws URISyntaxException
Method Detail

create

public static URI create(String)

parseServerAuthority

public URI parseServerAuthority()
                         throws URISyntaxException
URISyntaxException

normalize

public URI normalize()

resolve

public URI resolve(URI)

resolve

public URI resolve(String)

relativize

public URI relativize(URI)

toURL

public URL toURL()
          throws MalformedURLException
MalformedURLException

getScheme

public String getScheme()

isAbsolute

public boolean isAbsolute()

isOpaque

public boolean isOpaque()

getRawSchemeSpecificPart

public String getRawSchemeSpecificPart()

getSchemeSpecificPart

public String getSchemeSpecificPart()

getRawAuthority

public String getRawAuthority()

getAuthority

public String getAuthority()

getRawUserInfo

public String getRawUserInfo()

getUserInfo

public String getUserInfo()

getHost

public String getHost()

getPort

public int getPort()

getRawPath

public String getRawPath()

getPath

public String getPath()

getRawQuery

public String getRawQuery()

getQuery

public String getQuery()

getRawFragment

public String getRawFragment()

getFragment

public String getFragment()

equals

public boolean equals(Object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Description copied from class: Object
Returns the empty string. It's here to satisfy javac.

Overrides:
toString in class Object

toASCIIString

public String toASCIIString()