Module inet.ipaddr
Package inet.ipaddr

Class HostNameParameters

java.lang.Object
inet.ipaddr.HostNameParameters
All Implemented Interfaces:
Serializable, Cloneable, Comparable<HostNameParameters>

public class HostNameParameters extends Object implements Cloneable, Comparable<HostNameParameters>, Serializable
This class allows you to control the validation performed by the class HostName. The HostName class uses a default permissive HostNameParameters object when you do not specify one. If you wish to use parameters different from the default, then use this class. All instances are immutable and must be constructed with the nested Builder class.
Author:
sfoley
See Also:
  • Field Details

    • DEFAULT_ALLOW_EMPTY

      public static final boolean DEFAULT_ALLOW_EMPTY
      See Also:
    • DEFAULT_EMPTY_IS_LOOPBACK

      public static final boolean DEFAULT_EMPTY_IS_LOOPBACK
      See Also:
    • DEFAULT_ACCEPT_BRACKETED_IPV6

      public static final boolean DEFAULT_ACCEPT_BRACKETED_IPV6
      See Also:
    • DEFAULT_ACCEPT_BRACKETED_IPV4

      public static final boolean DEFAULT_ACCEPT_BRACKETED_IPV4
      See Also:
    • DEFAULT_NORMALIZE_TO_LOWER_CASE

      public static final boolean DEFAULT_NORMALIZE_TO_LOWER_CASE
      See Also:
    • DEFAULT_ALLOW_IP_ADDRESS

      public static final boolean DEFAULT_ALLOW_IP_ADDRESS
      See Also:
    • DEFAULT_ALLOW_PORT

      public static final boolean DEFAULT_ALLOW_PORT
      See Also:
    • DEFAULT_EXPECT_PORT

      public static final boolean DEFAULT_EXPECT_PORT
      See Also:
    • DEFAULT_ALLOW_SERVICE

      public static final boolean DEFAULT_ALLOW_SERVICE
      See Also:
    • allowEmpty

      public final boolean allowEmpty
    • emptyIsLoopback

      public final boolean emptyIsLoopback
    • allowBracketedIPv4

      public final boolean allowBracketedIPv4
    • allowBracketedIPv6

      public final boolean allowBracketedIPv6
    • normalizeToLowercase

      public final boolean normalizeToLowercase
    • allowIPAddress

      public final boolean allowIPAddress
    • allowPort

      public final boolean allowPort
    • allowService

      public final boolean allowService
    • expectPort

      public final boolean expectPort
    • addressOptions

      public final IPAddressStringParameters addressOptions
  • Constructor Details

    • HostNameParameters

      public HostNameParameters(IPAddressStringParameters addressOptions, boolean allowEmpty, boolean emptyIsLoopback, boolean allowBracketedIPv6, boolean allowBracketedIPv4, boolean normalizeToLowercase, boolean allowIPAddress, boolean allowPort, boolean expectPort, boolean allowService)
  • Method Details