Class InetUtils
- java.lang.Object
-
- org.springframework.cloud.commons.util.InetUtils
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class InetUtils extends Object implements Closeable
- Author:
- Spencer Gibb
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInetUtils.HostInfoHost information pojo.
-
Constructor Summary
Constructors Constructor Description InetUtils(InetUtilsProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()InetUtils.HostInfoconvertAddress(InetAddress address)InetAddressfindFirstNonLoopbackAddress()InetUtils.HostInfofindFirstNonLoopbackHostInfo()
-
-
-
Constructor Detail
-
InetUtils
public InetUtils(InetUtilsProperties properties)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
findFirstNonLoopbackHostInfo
public InetUtils.HostInfo findFirstNonLoopbackHostInfo()
-
findFirstNonLoopbackAddress
public InetAddress findFirstNonLoopbackAddress()
-
convertAddress
public InetUtils.HostInfo convertAddress(InetAddress address)
-
-