public final class NetUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
private static java.lang.String |
UNKNOWN_LOCALHOST |
Modifier | Constructor and Description |
---|---|
private |
NetUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getLocalHostname()
This method gets the network name of the machine we are running on.
|
static java.net.URI |
toURI(java.lang.String path)
Converts a URI string or file path to a URI object.
|
private static final Logger LOGGER
private static final java.lang.String UNKNOWN_LOCALHOST
public static java.lang.String getLocalHostname()
public static java.net.URI toURI(java.lang.String path)
path
- the URI string or path