|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.util.HostUtils
public final class HostUtils
| Method Summary | |
|---|---|
static Set<InetAddress> |
getAddresses()
Returns a Set of InetAddress that are non-loopback or mac. |
static String |
getLocalHostName()
Returns the local hostname. |
static String |
getLocalIp()
Returns the local IP. |
static Map<String,Set<InetAddress>> |
getNetworkInterfaceAddresses()
Returns a of InetAddress per NetworkInterface as a Map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Map<String,Set<InetAddress>> getNetworkInterfaceAddresses()
of InetAddress per NetworkInterface as a Map.
public static Set<InetAddress> getAddresses()
Set of InetAddress that are non-loopback or mac.
public static String getLocalHostName()
throws UnknownHostException
UnknownHostException
public static String getLocalIp()
throws UnknownHostException
UnknownHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||