org.almendra.commons.util.inet
Class InetUtility

java.lang.Object
  extended by org.almendra.commons.util.inet.InetUtility

public class InetUtility
extends java.lang.Object

Utility class that provides several helper method to deal with internet addresses.

Author:
Oliver Plohmann

Field Summary
static java.lang.String LOCALHOST
           
 
Method Summary
static java.lang.String getHostName()
          Return the local host name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALHOST

public static final java.lang.String LOCALHOST
See Also:
Constant Field Values
Method Detail

getHostName

public static java.lang.String getHostName()
Return the local host name. Retrieve it from a single location to be able to handle occurring exceptions unifomingly in a single location.

Returns:
local machine name