Package org.italiangrid.voms.ac.impl
Class DefaultLocalHostnameResolver
java.lang.Object
org.italiangrid.voms.ac.impl.DefaultLocalHostnameResolver
- All Implemented Interfaces:
LocalHostnameResolver
The default implementation for localhost name resolver. The localhost name is
resolved using the following code:
InetAddress.getLocalHost().getCanonicalHostName();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves the hostname for localhost
-
Constructor Details
-
DefaultLocalHostnameResolver
public DefaultLocalHostnameResolver()
-
-
Method Details
-
resolveLocalHostname
Description copied from interface:LocalHostnameResolver
Resolves the hostname for localhost- Specified by:
resolveLocalHostname
in interfaceLocalHostnameResolver
- Returns:
- a String containing the localhost hostname
- Throws:
UnknownHostException
- when there is an error resolving the hostname
-