inet.ipaddr

Class HostNameParameters

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


    public class HostNameParameters
    extends java.lang.Object
    implements java.lang.Cloneable, java.lang.Comparable<HostNameParameters>, java.io.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.
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_EMPTY_IS_LOOPBACK

        public static final boolean DEFAULT_EMPTY_IS_LOOPBACK
        See Also:
        Constant Field Values
      • DEFAULT_ACCEPT_BRACKETED_IPV6

        public static final boolean DEFAULT_ACCEPT_BRACKETED_IPV6
        See Also:
        Constant Field Values
      • DEFAULT_ACCEPT_BRACKETED_IPV4

        public static final boolean DEFAULT_ACCEPT_BRACKETED_IPV4
        See Also:
        Constant Field Values
      • DEFAULT_NORMALIZE_TO_LOWER_CASE

        public static final boolean DEFAULT_NORMALIZE_TO_LOWER_CASE
        See Also:
        Constant Field Values
      • DEFAULT_ALLOW_IP_ADDRESS

        public static final boolean DEFAULT_ALLOW_IP_ADDRESS
        See Also:
        Constant Field Values
      • 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
    • Constructor Detail

      • HostNameParameters

        public HostNameParameters(IPAddressStringParameters addressOptions,
                                  boolean allowEmpty,
                                  boolean emptyIsLoopback,
                                  boolean allowBracketedIPv6,
                                  boolean allowBracketedIPv4,
                                  boolean normalizeToLowercase,
                                  boolean allowIPAddress)