public class DefaultLocalHostnameResolver extends Object implements LocalHostnameResolver
InetAddress.getLocalHost().getCanonicalHostName();
| Constructor and Description |
|---|
DefaultLocalHostnameResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
resolveLocalHostname()
Resolves the hostname for localhost
|
public String resolveLocalHostname() throws UnknownHostException
LocalHostnameResolverresolveLocalHostname in interface LocalHostnameResolverUnknownHostException - when there is an error resolving the hostnameCopyright © 2018. All rights reserved.