URI (Java SE 23 & JDK 23)
-
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.
-
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
-