Package com.atlassian.bamboo.utils
Class BambooNetworkUtils
- java.lang.Object
-
- com.atlassian.bamboo.utils.BambooNetworkUtils
-
public class BambooNetworkUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description BambooNetworkUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InetAddress
getInetAddressByName(String host)
Equivalent ofInetAddress.getByName(String)
}, throwing RuntimeException.static InetAddress
getReachableAddress(String address, int port)
Does nothing for IPv4.
-
-
-
Method Detail
-
getReachableAddress
public static InetAddress getReachableAddress(String address, int port)
Does nothing for IPv4. For IPv6, if the port is not reachable through the default interface, it will search for a different interface and add its scope id to the returned address.
-
getInetAddressByName
public static InetAddress getInetAddressByName(String host)
Equivalent ofInetAddress.getByName(String)
}, throwing RuntimeException.
-
-