public 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
|
protected static org.apache.commons.logging.Log |
log |
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.
|
public static final String LOCALHOST
public static final String LOCALHOST_IPV6
protected static org.apache.commons.logging.Log log
public static String getLocalHostname()
LOCALHOST
Copyright © The Apache Software Foundation. All Rights Reserved.