public final class NetworkUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOCALHOST
what we return when we cannot determine our hostname.
|
static String |
LOCALHOST_IPV6
loopback address in IPV6
|
Modifier and Type | Method and Description |
---|---|
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) |
public static final String LOCALHOST
public static final String LOCALHOST_IPV6
public static void init(String hostName, String mgtHostName) throws SocketException
SocketException
public static String getLocalHostname() throws SocketException
LOCALHOST
SocketException
public static String getMgtHostName()
Copyright © 2016 WSO2 Inc. All rights reserved.