@Deprecated public abstract class IPAddressValidator extends AFormatValidator
IPV4Validator and IPV6Validator.NONE| Constructor and Description |
|---|
IPAddressValidator()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java8.util.Optional<InetAddress> |
asInetAddress(String subject)
Deprecated.
Creates an
InetAddress instance if possible and returns it, or on failure it returns
Optional.empty(). |
protected java8.util.Optional<String> |
checkIpAddress(String subject,
int expectedLength,
String failureFormat)
Deprecated.
Checks an IP address.
|
formatNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateprotected java8.util.Optional<InetAddress> asInetAddress(String subject)
InetAddress instance if possible and returns it, or on failure it returns
Optional.empty().subject - the string to be validated.protected java8.util.Optional<String> checkIpAddress(String subject, int expectedLength, String failureFormat)
subject - the string to be validated.expectedLength - the expected length of subject - it is validated if
asInetAddress(String) validation succeeds.failureFormat - the string format of the validation failue
message. The format string will receive only the subject parameter (so it has
to be referred as %s in the format stringCopyright © 2018. All rights reserved.