|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.common.NetUtils
NetUtils is meant to provide routine network related information to components of JONAS. One of the main purposes is to allow the server to extract it's own IP address correctly. This addresses a bug in java when dealing with Linux boxes on DHCP trying to extract their own IP addresses and always getting the loop back address instead of the external one.
Field Summary | |
static java.lang.String |
LOOP_BACK_ADDR
|
Constructor Summary | |
NetUtils()
|
Method Summary | |
static java.lang.String |
getLocalAddress()
Get the string form of the local IP address and not naively assume InetAddress.getLocalHost().getHostAddress() is the currect value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOOP_BACK_ADDR
Constructor Detail |
public NetUtils()
Method Detail |
public static java.lang.String getLocalAddress() throws java.net.UnknownHostException
java.net.UnknownHostException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |