public class HostNameParameters extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<HostNameParameters>, java.io.Serializable
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.Modifier and Type | Class and Description |
---|---|
static class |
HostNameParameters.Builder |
Modifier and Type | Field and Description |
---|---|
IPAddressStringParameters |
addressOptions |
boolean |
allowBracketedIPv4 |
boolean |
allowBracketedIPv6 |
boolean |
allowEmpty |
boolean |
allowIPAddress |
static boolean |
DEFAULT_ACCEPT_BRACKETED_IPV4 |
static boolean |
DEFAULT_ACCEPT_BRACKETED_IPV6 |
static boolean |
DEFAULT_ALLOW_EMPTY |
static boolean |
DEFAULT_ALLOW_IP_ADDRESS |
static boolean |
DEFAULT_EMPTY_IS_LOOPBACK |
static boolean |
DEFAULT_NORMALIZE_TO_LOWER_CASE |
boolean |
emptyIsLoopback |
boolean |
normalizeToLowercase |
Constructor and Description |
---|
HostNameParameters(IPAddressStringParameters addressOptions,
boolean allowEmpty,
boolean emptyIsLoopback,
boolean allowBracketedIPv6,
boolean allowBracketedIPv4,
boolean normalizeToLowercase,
boolean allowIPAddress) |
Modifier and Type | Method and Description |
---|---|
HostNameParameters |
clone() |
int |
compareTo(HostNameParameters o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
IPAddressStringParameters.Builder |
toAddressOptionsBuilder() |
HostNameParameters.Builder |
toBuilder() |
public static final boolean DEFAULT_ALLOW_EMPTY
public static final boolean DEFAULT_EMPTY_IS_LOOPBACK
public static final boolean DEFAULT_ACCEPT_BRACKETED_IPV6
public static final boolean DEFAULT_ACCEPT_BRACKETED_IPV4
public static final boolean DEFAULT_NORMALIZE_TO_LOWER_CASE
public static final boolean DEFAULT_ALLOW_IP_ADDRESS
public final boolean allowEmpty
public final boolean emptyIsLoopback
public final boolean allowBracketedIPv4
public final boolean allowBracketedIPv6
public final boolean normalizeToLowercase
public final boolean allowIPAddress
public final IPAddressStringParameters addressOptions
public HostNameParameters(IPAddressStringParameters addressOptions, boolean allowEmpty, boolean emptyIsLoopback, boolean allowBracketedIPv6, boolean allowBracketedIPv4, boolean normalizeToLowercase, boolean allowIPAddress)
public HostNameParameters.Builder toBuilder()
public IPAddressStringParameters.Builder toAddressOptionsBuilder()
public HostNameParameters clone()
clone
in class java.lang.Object
public int compareTo(HostNameParameters o)
compareTo
in interface java.lang.Comparable<HostNameParameters>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object