All Implemented Interfaces:
Serializable, Comparable<URI>

  • Constructor Summary

    Constructors

    Constructs a URI by parsing the given string.

    Constructs a URI from the given components.

    Constructs a hierarchical URI from the given components.

    Constructs a hierarchical URI from the given components.

    Constructs a hierarchical URI from the given components.

  • Method Summary

    int

    Compares this URI to another object, which must be a URI.

    Creates a URI by parsing the given string.

    boolean

    Tests this URI for equality with another object.

    Returns the decoded authority component of this URI.

    Returns the decoded fragment component of this URI.

    getHost()

    Returns the host component of this URI.

    getPath()

    Returns the decoded path component of this URI.

    int

    getPort()

    Returns the port number of this URI.

    getQuery()

    Returns the decoded query component of this URI.

    Returns the raw authority component of this URI.

    Returns the raw fragment component of this URI.

    Returns the raw path component of this URI.

    Returns the raw query component of this URI.

    Returns the raw scheme-specific part of this URI.

    Returns the raw user-information component of this URI.

    getScheme()

    Returns the scheme component of this URI.

    Returns the decoded scheme-specific part of this URI.

    Returns the decoded user-information component of this URI.

    int

    hashCode()

    Returns a hash-code value for this URI.

    boolean

    Tells whether or not this URI is absolute.

    boolean

    isOpaque()

    Tells whether or not this URI is opaque.

    normalize()

    Normalizes this URI's path.

    Attempts to parse this URI's authority component, if defined, into user-information, host, and port components.

    Relativizes the given URI against this URI.

    Constructs a new URI by parsing the given string and then resolving it against this URI.

    Resolves the given URI against this URI.

    Returns the content of this URI as a US-ASCII string.

    toString()

    Returns the content of this URI as a string.

    toURL()

    Constructs a URL from this URI.

    Methods declared in class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Creates and returns a copy of this object.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Constructor Details

    • URI

    • URI

    • URI

    • URI

    • URI

  • Method Details

    • create

    • parseServerAuthority

    • normalize

    • resolve

    • resolve

    • relativize

    • toURL

    • getScheme

    • isAbsolute

    • isOpaque

    • getRawSchemeSpecificPart

    • getSchemeSpecificPart

    • getRawAuthority

    • getAuthority

    • getRawUserInfo

    • getUserInfo

    • getHost

    • getPort

    • getRawPath

    • getPath

    • getRawQuery

    • getQuery

    • getRawFragment

    • getFragment

    • equals

    • hashCode

    • compareTo

    • toString

    • toASCIIString