Top Constructors Methods
org.keycloak.common.util

public Class HostUtils

extends Object
Class Inheritance
Imports
java.net.InetAddress, .UnknownHostException

Author
Marek Posolda

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
private static String
public static String
private static InetAddress

Returns:

InetAddress of the localhost
getLocalHost
()

Methods returns InetAddress for localhost

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HostUtilsback to summary
public HostUtils()

Method Detail

getHostNameback to summary
public static String getHostName()
getHostNameImplback to summary
private static String getHostNameImpl()
getIpAddressback to summary
public static String getIpAddress()
getLocalHostback to summary
private static InetAddress getLocalHost() throws UnknownHostException

Methods returns InetAddress for localhost

Returns:InetAddress

InetAddress of the localhost

Exceptions
UnknownHostException:
if localhost could not be resolved