com.plumtree.uiinfrastructure.util
Class PlatformDNS

java.lang.Object
  extended by com.plumtree.uiinfrastructure.util.PlatformDNS

public class PlatformDNS
extends java.lang.Object

Uses java.net classes to determine the localhost's machien name and ip address Also does IP address comparisons by octet

Author:
DavidP

Constructor Summary
PlatformDNS()
           
 
Method Summary
 java.lang.String getLocalHostname()
          Gets the local host's fully qualified hostname
 byte[] getLocalIPAddr()
          Gets the local host's IP address in byte[] format
 java.lang.String getLocalIPAddrAsString()
          Formats the ip address of the localhost as a string
 boolean init()
          Get the localhost name and ip address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformDNS

public PlatformDNS()
Method Detail

init

public boolean init()
Get the localhost name and ip address

Returns:

getLocalHostname

public java.lang.String getLocalHostname()
Gets the local host's fully qualified hostname

Returns:

getLocalIPAddr

public byte[] getLocalIPAddr()
Gets the local host's IP address in byte[] format

Returns:

getLocalIPAddrAsString

public java.lang.String getLocalIPAddrAsString()
Formats the ip address of the localhost as a string

Returns:



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.