public class HostNameParameters extends Object implements Cloneable, Comparable<HostNameParameters>, 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 |
boolean |
allowPort |
boolean |
allowService |
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_ALLOW_PORT |
static boolean |
DEFAULT_ALLOW_SERVICE |
static boolean |
DEFAULT_EMPTY_IS_LOOPBACK |
static boolean |
DEFAULT_EXPECT_PORT |
static boolean |
DEFAULT_NORMALIZE_TO_LOWER_CASE |
boolean |
emptyIsLoopback |
boolean |
expectPort |
boolean |
normalizeToLowercase |
Constructor and Description |
---|
HostNameParameters(IPAddressStringParameters addressOptions,
boolean allowEmpty,
boolean emptyIsLoopback,
boolean allowBracketedIPv6,
boolean allowBracketedIPv4,
boolean normalizeToLowercase,
boolean allowIPAddress,
boolean allowPort,
boolean expectPort,
boolean allowService) |
Modifier and Type | Method and Description |
---|---|
HostNameParameters |
clone() |
int |
compareTo(HostNameParameters o) |
boolean |
equals(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 static final boolean DEFAULT_ALLOW_PORT
public static final boolean DEFAULT_EXPECT_PORT
public static final boolean DEFAULT_ALLOW_SERVICE
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 boolean allowPort
public final boolean allowService
public final boolean expectPort
public final IPAddressStringParameters addressOptions
public HostNameParameters(IPAddressStringParameters addressOptions, boolean allowEmpty, boolean emptyIsLoopback, boolean allowBracketedIPv6, boolean allowBracketedIPv4, boolean normalizeToLowercase, boolean allowIPAddress, boolean allowPort, boolean expectPort, boolean allowService)
public HostNameParameters.Builder toBuilder()
public IPAddressStringParameters.Builder toAddressOptionsBuilder()
public HostNameParameters clone()
public int compareTo(HostNameParameters o)
compareTo
in interface Comparable<HostNameParameters>