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
LocalHostnameResolver
resolveLocalHostname
in interface LocalHostnameResolver
UnknownHostException
- when there is an error resolving the hostnameCopyright © 2020. All Rights Reserved.