Class UriHost
java.lang.Object
io.helidon.common.uri.UriHost
Normalized host value.
The value never contains a port or IPv6 brackets. DNS names are normalized to lower-case ASCII, IPv4 literals to
decimal dotted-quad form, and IPv6 literals to canonical compressed lower-case text form.
Generic registered names obtained from UriAuthority.createForUri(String) are normalized to lower case,
with unreserved percent-encoded characters decoded and other percent-encoded characters retained using upper-case hex digits.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
create
Create a normalized DNS host or IP literal. This method does not accept generic URI registered names; useUriAuthority.createForUri(String)for those.- Parameters:
host- host text, without a port; IPv6 literals must not use authority brackets, useUriAuthorityfor authority text- Returns:
- normalized host
- Throws:
NullPointerException- in case the host isnullIllegalArgumentException- in case the host is invalid
-
value
-
kind
-
equals
-
hashCode
-
toString
-