public class NetAddressValidatorUtil extends Object
| Constructor and Description |
|---|
NetAddressValidatorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isIPv4Address(String input) |
static boolean |
isIPv6Address(String input) |
static boolean |
isIPv6HexCompressedAddress(String input)
Check if the given address is a valid IPv6 address in the hex-compressed notation
The format is 'xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx'.
|
static boolean |
isIPv6IPv4MappedAddress(String input)
Check if
input is an IPv4 address mapped into a IPv6 address. |
static boolean |
isIPv6MixedAddress(String input)
Check if the given address is a valid IPv6 address in the mixed-standard or mixed-compressed notation.
|
static boolean |
isIPv6StdAddress(String input)
Check if the given address is a valid IPv6 address in the standard format
The format is 'xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx'.
|
static boolean |
isLinkLocalIPv6WithZoneIndex(String input)
Check if
input is a link local IPv6 address starting with "fe80:" and containing
a zone index with "%xxx". |
public static boolean isIPv4Address(String input)
public static boolean isIPv6Address(String input)
public static boolean isIPv6StdAddress(String input)
input - ip-address to checkinput is in correct IPv6 notation.public static boolean isIPv6HexCompressedAddress(String input)
input - ip-address to checkinput is in correct IPv6 (hex-compressed) notation.public static boolean isIPv6MixedAddress(String input)
input - ip-address to checkinput is in correct IPv6 (mixed-standard or mixed-compressed) notation.public static boolean isIPv6IPv4MappedAddress(String input)
input is an IPv4 address mapped into a IPv6 address. These are
starting with "::ffff:" followed by the IPv4 address in a dot-seperated notation.
The format is '::ffff:d.d.d.d'input - ip-address to checkinput is in correct IPv6 notation containing an IPv4 addresspublic static boolean isLinkLocalIPv6WithZoneIndex(String input)
input is a link local IPv6 address starting with "fe80:" and containing
a zone index with "%xxx". The zone index will not be checked.input - ip-address to checkinput is in correct IPv6 notation.Copyright © 2023 Seata. All rights reserved.