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