public class InetAddressBean extends Object
Modifier and Type | Method and Description |
---|---|
static Iterable<InetAddress> |
findLoopbacks() |
static String |
getCanonicalLocalHostName() |
static String |
getLocalCanonicalHostName(String defaultName) |
static Optional<InetAddress> |
getLocalHostAddress() |
static String |
getLocalHostAddress(String defaultAddress)
Deprecated.
since 6.7 use
getLocalHostAddress() instead |
static Optional<String> |
getLocalHostAddressForUrl()
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
- @Deprecated public static String getLocalHostAddress(String defaultAddress)
getLocalHostAddress()
insteadpublic static Optional<InetAddress> getLocalHostAddress()
public static Optional<String> getLocalHostAddressForUrl()
public static Iterable<InetAddress> findLoopbacks()
@NotNull public static InetAddress getLoopback()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.