|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.utils.NetworkUtils
public final class NetworkUtils
Utility classes for networking
| Field Summary | |
|---|---|
static String |
LOCALHOST
what we return when we cannot determine our hostname. |
static String |
LOCALHOST_IPV6
loopback address in IPV6 |
| Method Summary | |
|---|---|
static String |
getLocalHostname()
Get the string defining the hostname of the system, as taken from the default network adapter of the system. |
static String |
getMgtHostName()
Returns the host name to be used by the Management Console |
static void |
init(String hostName,
String mgtHostName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOCALHOST
public static final String LOCALHOST_IPV6
| Method Detail |
|---|
public static void init(String hostName,
String mgtHostName)
throws SocketException
SocketException
public static String getLocalHostname()
throws SocketException
LOCALHOST
SocketExceptionpublic static String getMgtHostName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||