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
.
Parses a valid URI string into a normalized URI reference as defined by http://tools.
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.
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.
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.
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.
Converts a set of URI components to an "effective HTTP 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.
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.
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.
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
.