|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.InetAddressHelper
public abstract class InetAddressHelper
Helper class that encapsulates common InetAddress functionality.
| Field Summary | |
|---|---|
static boolean |
PreferIPv4StackThe value of system property "java.net.preferIPv4Stack". |
static boolean |
PreferIPv6AddressesThe value of system property "java.net.preferIPv6Addresses". |
| Constructor Summary | |
|---|---|
InetAddressHelper() |
|
| Method Summary | |
|---|---|
static java.util.List |
getAllLocalAddresses()Return a list of all InetAddress objects bound to all the network interfaces on this machine. |
static java.net.InetAddress |
getByAddress(byte[] abAddr)Return an InetAddress object given the raw IP address. |
static java.net.InetAddress |
getLocalHost()Obtain the local host address. |
static boolean |
isAnyLocalAddress(java.net.InetAddress addr)Deprecated. As of Coherence 3.0, replaced by InetAddress.isAnyLocalAddress() |
static boolean |
isLinkLocalAddress(java.net.InetAddress addr)Deprecated. As of Coherence 3.0, replaced by InetAddress.isLinkLocalAddress() |
static boolean |
isLoopbackAddress(java.net.InetAddress addr)Deprecated. As of Coherence 3.0, replaced by InetAddress.isLoopbackAddress() |
static boolean |
isSiteLocalAddress(java.net.InetAddress addr)Deprecated. As of Coherence 3.0, replaced by InetAddress.isSiteLocalAddress() |
static long |
toLong(java.net.InetAddress addr)Converts an IPv4 compatible address to a long value. |
static java.lang.String |
toString(byte[] ab)Converts a byte array to a raw IP address string representation. |
static java.lang.String |
toString(java.net.InetAddress addr)Format an IP address string representing the specified InetAddress object. |
static boolean |
virtuallyEqual(byte[] abAddr1, byte[] abAddr2)Compare specified raw IP addresses taking into account IPv4-compatible IPv6 addresses. |
| Field Detail |
|---|
public static final boolean PreferIPv4Stack
public static final boolean PreferIPv6Addresses
| Constructor Detail |
|---|
public InetAddressHelper()
| Method Detail |
|---|
public static java.net.InetAddress getLocalHost()
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic static java.util.List getAllLocalAddresses()
public static boolean isLoopbackAddress(java.net.InetAddress addr)
InetAddress.isLoopbackAddress()addr - the InetAddresspublic static boolean isAnyLocalAddress(java.net.InetAddress addr)
InetAddress.isAnyLocalAddress()addr - the InetAddresspublic static boolean isLinkLocalAddress(java.net.InetAddress addr)
InetAddress.isLinkLocalAddress()addr - the InetAddresspublic static boolean isSiteLocalAddress(java.net.InetAddress addr)
InetAddress.isSiteLocalAddress()addr - the InetAddress
public static java.net.InetAddress getByAddress(byte[] abAddr)
throws java.net.UnknownHostException
abAddr - the raw IP address in network byte orderjava.net.UnknownHostException
public static boolean virtuallyEqual(byte[] abAddr1,
byte[] abAddr2)
abAddr1 - first IP addressabAddr2 - second IP addresspublic static long toLong(java.net.InetAddress addr)
addr - an instance of InetAddress to convert to a longpublic static java.lang.String toString(byte[] ab)
ab - the byte array holding the IP addressInetAddress.getHostAddress(), Inet6Addresspublic static java.lang.String toString(java.net.InetAddress addr)
addr - the address for which to format the IP address stringInetAddress.getHostAddress(), Inet6Address
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||