Class HostValidator

java.lang.Object
io.helidon.http.HostValidator

@Deprecated(since="4.1.5", forRemoval=true) public final class HostValidator extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
use UriValidator instead
Validate the host string (maybe from the Host header).

Validation is based on RFC-3986.

  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use UriValidator.validateHost(String) instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use UriValidator.validateIpLiteral(String) instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use UriValidator.validateNonIpLiteral(String) instead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • validate

      @Deprecated(forRemoval=true, since="4.1.5") public static void validate(String host)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use UriValidator.validateHost(String) instead
      Validate a host string.
      Parameters:
      host - host to validate
      Throws:
      IllegalArgumentException - in case the host is not valid, the message is percent encoded
    • validateIpLiteral

      @Deprecated(forRemoval=true, since="4.1.5") public static void validateIpLiteral(String ipLiteral)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use UriValidator.validateIpLiteral(String) instead
      An 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(forRemoval=true, since="4.1.5") public static void validateNonIpLiteral(String host)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use UriValidator.validateNonIpLiteral(String) instead
      Validate 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