URI (Java SE 26 & JDK 26)
- 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
intCompares this URI to another object, which must be a URI.
Creates a URI by parsing the given string.
booleanTests 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.
intgetPort()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.
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.
inthashCode()Returns a hash-code value for this URI.
booleanTells whether or not this URI is absolute.
booleanisOpaque()Tells whether or not this URI is opaque.
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, waitCreates and returns a copy of this object.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(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 voidwait(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
-