org.apache.jcs.utils.net
Class HostNameUtil

java.lang.Object
  extended by org.apache.jcs.utils.net.HostNameUtil

public class HostNameUtil
extends java.lang.Object

Simple utility for getting the local host name.

Author:
Aaron Smuts

Constructor Summary
HostNameUtil()
           
 
Method Summary
static java.lang.String getLocalHostAddress()
          Gets the address for the local machine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostNameUtil

public HostNameUtil()
Method Detail

getLocalHostAddress

public static java.lang.String getLocalHostAddress()
                                            throws java.net.UnknownHostException
Gets the address for the local machine.

Returns:
InetAddress.getLocalHost().getHostAddress()
Throws:
java.net.UnknownHostException


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.