com.caucho.util
Class HostUtil

java.lang.Object
  extended by com.caucho.util.HostUtil

public final class HostUtil
extends java.lang.Object

Host/Inet utilities.


Method Summary
static java.util.ArrayList<java.net.InetAddress> getLocalAddresses()
           
static java.lang.String getLocalHostName()
           
static java.util.ArrayList<java.net.NetworkInterface> getNetworkInterfaces()
           
static boolean isLinkLocalNetwork(java.net.InetAddress addr)
           
static boolean isPrivateNetwork(java.net.InetAddress addr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalHostName

public static java.lang.String getLocalHostName()

isPrivateNetwork

public static boolean isPrivateNetwork(java.net.InetAddress addr)

isLinkLocalNetwork

public static boolean isLinkLocalNetwork(java.net.InetAddress addr)

getLocalAddresses

public static java.util.ArrayList<java.net.InetAddress> getLocalAddresses()

getNetworkInterfaces

public static java.util.ArrayList<java.net.NetworkInterface> getNetworkInterfaces()
Returns: