org.apache.jcs.utils.net
Class AddressUtil

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

public final class AddressUtil
extends Object

Utility for getting info on the local ip address.


Field Summary
static String DEFAULT_INTERNET_ADDRESS_AS_STRING
          the default returned string value for the whole ip
static String DEFAULT_INTERNET_ADDRESS_OCTET_AS_STRING
          the default returned string value for the last octet
 
Method Summary
static String obtainFinalThreeDigitsOfAddressAsString()
          This method looks up the host machines internet address, parses out the last octet and formats that number as a 3 character string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INTERNET_ADDRESS_OCTET_AS_STRING

public static final String DEFAULT_INTERNET_ADDRESS_OCTET_AS_STRING
the default returned string value for the last octet

See Also:
Constant Field Values

DEFAULT_INTERNET_ADDRESS_AS_STRING

public static final String DEFAULT_INTERNET_ADDRESS_AS_STRING
the default returned string value for the whole ip

See Also:
Constant Field Values
Method Detail

obtainFinalThreeDigitsOfAddressAsString

public static String obtainFinalThreeDigitsOfAddressAsString()
This method looks up the host machines internet address, parses out the last octet and formats that number as a 3 character string.

Returns:
a string containing the digits of the ip address


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