Package org.forgerock.audit.providers
Class DefaultLocalHostNameProvider
- java.lang.Object
-
- org.forgerock.audit.providers.DefaultLocalHostNameProvider
-
- All Implemented Interfaces:
LocalHostNameProvider
public class DefaultLocalHostNameProvider extends Object implements LocalHostNameProvider
Default implementation ofLocalHostNameProvider
usingInetAddress
to lookup host name of local host.
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalHostNameProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalHostName()
Establish the local hostname of the current server.
-
-
-
Method Detail
-
getLocalHostName
public String getLocalHostName()
Description copied from interface:LocalHostNameProvider
Establish the local hostname of the current server.- Specified by:
getLocalHostName
in interfaceLocalHostNameProvider
- Returns:
- The local hostname.
-
-