|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.compoze.collab.util.NetUtility
public class NetUtility
This class contains helper methods for networking related tasks.
| Method Summary | |
|---|---|
static byte[] |
getLocalAddress()
Gets the local address on the machine (updated only once every minute as this operation takes a minimum of 4 ms on Windows). |
static InetAddress |
getLocalHost()
Gets the local address on the machine (updated only once every minute as this operation takes a minimum of 4 ms on Windows). |
static String |
getLocalHostname()
Gets the hostname of the machine (updated only once every minute as this operation takes a minimum of 4 ms on Windows). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getLocalHostname()
localhost if it
could not be determinedpublic static byte[] getLocalAddress()
127.0.0.1 if it could not
be determined
public static InetAddress getLocalHost()
throws UnknownHostException
UnknownHostException - if the local address could not be
determined
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||