Class InetAddressBean
java.lang.Object
com.atlassian.bamboo.configuration.InetAddressBean
-
Method Summary
Modifier and TypeMethodDescriptionstatic Iterable<InetAddress>
static @Nullable String
static @Nullable String
getLocalCanonicalHostName
(@Nullable String defaultName) static Optional<InetAddress>
static String
getLocalHostAddress
(String defaultAddress) Deprecated.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 foundstatic @NotNull InetAddress
-
Method Details
-
getCanonicalLocalHostName
- Returns:
- Canonical name of the local host or null if it could not be found
-
getLocalCanonicalHostName
@Nullable public static @Nullable String getLocalCanonicalHostName(@Nullable @Nullable String defaultName) - Parameters:
defaultName
-- Returns:
- Canonical name of the local host. If it fails the defaultName will be returned
-
getLocalHostName
Returns the name of the local host or defaultName if local host could not be found- Parameters:
defaultName
-- Returns:
-
getLocalHostAddress
Deprecated.since 6.7 usegetLocalHostAddress()
insteadReturns the address of the local host or defaultAddress if local host could not be found -
getLocalHostAddress
-
getLocalHostAddressForUrl
Returns the address of the local host or defaultAddress if local host could not be found. The address can be used directly in an URL - IPv6 addresses are already correctly formatted. -
findLoopbacks
-
getLoopback
-
getLocalHostAddress()
instead