public final class AddressUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AddressUtil.AddressHolder |
static class |
AddressUtil.AddressMatcher
http://docs.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/index.html
|
static class |
AddressUtil.InvalidAddressException |
Modifier and Type | Method and Description |
---|---|
static InetAddress |
fixScopeIdAndGetInetAddress(InetAddress inetAddress) |
static AddressUtil.AddressHolder |
getAddressHolder(String address) |
static AddressUtil.AddressHolder |
getAddressHolder(String address,
int defaultPort) |
static AddressUtil.AddressMatcher |
getAddressMatcher(String address) |
static Inet6Address |
getInetAddressFor(Inet6Address inetAddress,
String scope) |
static Collection<String> |
getMatchingIpv4Addresses(AddressUtil.AddressMatcher addressMatcher) |
static Collection<Inet6Address> |
getPossibleInetAddressesFor(Inet6Address inet6Address) |
static boolean |
isIpAddress(String address) |
static boolean |
matchAnyInterface(String address,
Collection<String> interfaces) |
static boolean |
matchInterface(String address,
String interfaceMask) |
public static boolean matchAnyInterface(String address, Collection<String> interfaces)
public static AddressUtil.AddressHolder getAddressHolder(String address)
public static AddressUtil.AddressHolder getAddressHolder(String address, int defaultPort)
public static boolean isIpAddress(String address)
public static InetAddress fixScopeIdAndGetInetAddress(InetAddress inetAddress) throws SocketException
SocketException
public static Inet6Address getInetAddressFor(Inet6Address inetAddress, String scope) throws UnknownHostException, SocketException
UnknownHostException
SocketException
public static Collection<Inet6Address> getPossibleInetAddressesFor(Inet6Address inet6Address)
public static Collection<String> getMatchingIpv4Addresses(AddressUtil.AddressMatcher addressMatcher)
public static AddressUtil.AddressMatcher getAddressMatcher(String address)
Copyright © 2013 Hazelcast, Inc.. All rights reserved.