java.lang.Object
io.helidon.http.HostValidator
Deprecated, for removal: This API element is subject to removal in a future version.
Validate the host string (maybe from the
Host
header).
Validation is based on RFC-3986.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deprecated, for removal: This API element is subject to removal in a future version.useUriValidator.validateHost(String)
insteadstatic void
validateIpLiteral
(String ipLiteral) Deprecated, for removal: This API element is subject to removal in a future version.useUriValidator.validateIpLiteral(String)
insteadstatic void
validateNonIpLiteral
(String host) Deprecated, for removal: This API element is subject to removal in a future version.useUriValidator.validateNonIpLiteral(String)
instead
-
Method Details
-
validate
Deprecated, for removal: This API element is subject to removal in a future version.useUriValidator.validateHost(String)
insteadValidate a host string.- Parameters:
host
- host to validate- Throws:
IllegalArgumentException
- in case the host is not valid, the message is percent encoded
-
validateIpLiteral
Deprecated, for removal: This API element is subject to removal in a future version.useUriValidator.validateIpLiteral(String)
insteadAn IP literal starts with[
and ends with]
.- Parameters:
ipLiteral
- host literal string, may be an IPv6 address, or IP version future- Throws:
IllegalArgumentException
- in case the host is not valid, the message is percent encoded
-
validateNonIpLiteral
Deprecated, for removal: This API element is subject to removal in a future version.useUriValidator.validateNonIpLiteral(String)
insteadValidate IPv4 address or a registered name.- Parameters:
host
- string with either an IPv4 address, or a registered name- Throws:
IllegalArgumentException
- in case the host is not valid, the message is percent encoded
-
UriValidator
instead