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.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/draft-ietf-httpbis-p1-messaging-22#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:
- the scheme
and host
components are converted to lowercase
- a potentially existing port
component is removed if it matches one of the defined default ports for the scheme
- percent-encoded octets are decoded if allowed, otherwise they are converted to uppercase hex notation
- .
and ..
path segments are resolved as far as possible
Normalizes the given URI string by performing the following normalizations:
- the scheme
and host
components are converted to lowercase
- a potentially existing port
component is removed if it matches one of the defined default ports for the scheme
- percent-encoded octets are decoded if allowed, otherwise they are converted to uppercase hex notation
- .
and ..
path segments are resolved as far as possible
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 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/draft-ietf-httpbis-p1-messaging-22#section-5.3.
Parses the given string into an HTTP request target URI as defined by
http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-22#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
.