A port number that may be 0
to signal the default port of for scheme.
In general what you want is not the value of this field but Uri.effectivePort.
The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1
the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters
after the colon (:
). Therefore, it is not guaranteed that future versions of this class will
preserve full userinfo between parsing and rendering (even if it might do so right now).
Creates a new Uri instance from the given components.
Creates a new Uri instance from the given components.
All components are verified and normalized except the authority which is kept as provided.
If the given combination of components does not constitute a valid URI as defined by
http://tools.ietf.org/html/rfc3986 the method throws an IllegalUriException
.
Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.
Parses a valid URI string into a normalized URI reference as defined
by http://tools.ietf.org/html/rfc3986#section-4.1.
Percent-encoded octets are decoded using the given charset (where specified by the RFC).
If strict is false
, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.
If the given string is not a valid URI the method throws an IllegalUriException
.
Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.
Parses a valid URI string into a normalized URI reference as defined
by http://tools.ietf.org/html/rfc3986#section-4.1.
Percent-encoded octets are decoded using the given charset (where specified by the RFC).
If strict is false
, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.
If the given string is not a valid URI the method throws an IllegalUriException
.
Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.
Parses a valid URI string into a normalized URI reference as defined
by http://tools.ietf.org/html/rfc3986#section-4.1.
Percent-encoded octets are decoded using the given charset (where specified by the RFC).
Accepts unencoded visible 7-bit ASCII characters in addition to the rfc.
If the given string is not a valid URI the method throws an IllegalUriException
.
Parses a valid URI string into a normalized URI reference as defined by http://tools.ietf.org/html/rfc3986#section-4.1.
Parses a valid URI string into a normalized URI reference as defined
by http://tools.ietf.org/html/rfc3986#section-4.1.
Percent-encoded octets are UTF-8 decoded.
Accepts unencoded visible 7-bit ASCII characters in addition to the RFC.
If the given string is not a valid URI the method throws an IllegalUriException
.
Converts a set of URI components to an "effective HTTP request URI" as defined by http://tools.ietf.org/html/rfc7230#section-5.5.
Converts a set of URI components to an "effective request URI" as defined by http://tools.ietf.org/html/rfc7230#section-5.5.
Creates a new Uri instance from the given components.
Creates a new Uri instance from the given components.
All components are verified and normalized.
If the given combination of components does not constitute a valid URI as defined by
http://tools.ietf.org/html/rfc3986 the method throws an IllegalUriException
.
Normalizes the given URI string by performing the following normalizations:
Normalizes the given URI string by performing the following normalizations:
scheme
and host
components are converted to lowercaseport
component is removed if it matches one of the defined default ports for the scheme.
and ..
path segments are resolved as far as possibleIf strict is false
, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.
If the given string is not a valid URI the method throws an IllegalUriException
.
Parses a string into a normalized absolute URI as defined by http://tools.ietf.org/html/rfc3986#section-4.3.
Parses a string into a normalized absolute URI as defined by http://tools.ietf.org/html/rfc3986#section-4.3.
Percent-encoded octets are decoded using the given charset (where specified by the RFC).
If strict is false
, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.
If the given string is not a valid URI the method throws an IllegalUriException
.
Parses a string into a normalized URI reference that is immediately resolved against the given base URI as defined by http://tools.ietf.org/html/rfc3986#section-5.2.
Parses a string into a normalized URI reference that is immediately resolved against the given base URI as
defined by http://tools.ietf.org/html/rfc3986#section-5.2.
Note that the given base Uri must be absolute (i.e. define a scheme).
Percent-encoded octets are decoded using the given charset (where specified by the RFC).
If strict is false
, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.
If the given string is not a valid URI the method throws an IllegalUriException
.
Parses the given string into an HTTP request target URI as defined by http://tools.ietf.org/html/rfc7230#section-5.3.
Parses the given string into an HTTP request target URI as defined by
http://tools.ietf.org/html/rfc7230#section-5.3.
If strict is false
, accepts unencoded visible 7-bit ASCII characters in addition to the RFC.
If the given string is not a valid URI the method throws an IllegalUriException
.