public class InetAddressBean extends Object
Modifier and Type | Method and Description |
---|---|
static Iterable<InetAddress> |
findLoopbacks() |
static String |
getCanonicalLocalHostName() |
static String |
getLocalCanonicalHostName(String defaultName) |
static String |
getLocalHostAddress(String defaultAddress)
Returns the address of the local host or defaultAddress if local host could not be found
|
static String |
getLocalHostName(String defaultName)
Returns the name of the local host or defaultName if local host could not be found
|
static InetAddress |
getLoopback() |
@Nullable public static String getCanonicalLocalHostName()
@Nullable public static String getLocalCanonicalHostName(@Nullable String defaultName)
defaultName
- @Nullable public static String getLocalHostName(@Nullable String defaultName)
defaultName
- public static String getLocalHostAddress(String defaultAddress)
defaultAddress
- @Nullable public static Iterable<InetAddress> findLoopbacks()
@NotNull public static InetAddress getLoopback()
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.