org.apache.jcs.utils.net
Class HostNameUtil
java.lang.Object
org.apache.jcs.utils.net.HostNameUtil
public class HostNameUtil
- extends Object
Simple utility for getting the local host name.
- Author:
- Aaron Smuts
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostNameUtil
public HostNameUtil()
getLocalHostAddress
public static String getLocalHostAddress()
throws UnknownHostException
- Gets the address for the local machine.
- Returns:
- InetAddress.getLocalHost().getHostAddress()
- Throws:
UnknownHostException
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.