public static class IPAddressStringParameters.IPVersionAddressStringParameters
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
allowLeadingZeros
whether you allow addresses with segments that have leasing zeros like 001.2.3.004 or 1:000a::
For IPV4, this option overrides inet_aton octal.
|
boolean |
allowPrefixesBeyondAddressSize
controls whether ipv4 can have prefix length bigger than 32 and whether ipv6 can have prefix length bigger than 128
|
boolean |
allowPrefixLengthLeadingZeros
controls whether you allow addresses with prefixes that have leasing zeros like 1.0.0.0/08 or 1::/064
|
boolean |
allowUnlimitedLeadingZeros
if
allowLeadingZeros or the address is IPv4 and IPv4AddressStringParameters.inet_aton_octal is true,
this determines if you allow leading zeros that extend segments
beyond the usual segment length, which is 3 for IPv4 dotted-decimal and 4 for IPv6. |
boolean |
allowWildcardedSeparator
controls whether the wildcard '*' or '%' can replace the segment separators '.' and ':'.
|
IPAddressStringParameters.RangeParameters |
rangeOptions
controls whether wildcards like '*', '_' or ranges with '-' are allowed
|
Constructor and Description |
---|
IPVersionAddressStringParameters(boolean allowLeadingZeros,
boolean allowPrefixLengthLeadingZeros,
boolean allowUnlimitedLeadingZeros,
IPAddressStringParameters.RangeParameters rangeOptions,
boolean allowWildcardedSeparator,
boolean allowPrefixesBeyondAddressSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public final IPAddressStringParameters.RangeParameters rangeOptions
public final boolean allowPrefixesBeyondAddressSize
public final boolean allowWildcardedSeparator
public final boolean allowLeadingZeros
IPv4AddressStringParameters.inet_aton_octal
.
Otherwise, validation defers to IPv4AddressStringParameters.inet_aton_octal
public final boolean allowUnlimitedLeadingZeros
allowLeadingZeros
or the address is IPv4 and IPv4AddressStringParameters.inet_aton_octal
is true,
this determines if you allow leading zeros that extend segments
beyond the usual segment length, which is 3 for IPv4 dotted-decimal and 4 for IPv6.
For example, this determines whether you allow 0001.0002.0003.0004public final boolean allowPrefixLengthLeadingZeros
public IPVersionAddressStringParameters(boolean allowLeadingZeros, boolean allowPrefixLengthLeadingZeros, boolean allowUnlimitedLeadingZeros, IPAddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize)