Package com.google.gerrit.server.util
Class SocketUtil
java.lang.Object
com.google.gerrit.server.util.SocketUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Format an address string intohost:port
or*:port
syntax.static String
format
(SocketAddress s, int defaultPort) Format an address string intohost:port
or*:port
syntax.static String
hostname
(InetSocketAddress addr) Get the name or IP address, or*
if this address is a wildcard IP.static boolean
isIPv6
(InetAddress ip) True if this InetAddress is a raw IPv6 in dotted quad notation.static InetSocketAddress
Parse an address string such ashost:port
or*:port
.static InetSocketAddress
Parse and resolve an address string, looking up the IP address.
-
Method Details
-
isIPv6
True if this InetAddress is a raw IPv6 in dotted quad notation. -
hostname
Get the name or IP address, or*
if this address is a wildcard IP. -
format
Format an address string intohost:port
or*:port
syntax. -
format
Format an address string intohost:port
or*:port
syntax. -
parse
Parse an address string such ashost:port
or*:port
. -
resolve
Parse and resolve an address string, looking up the IP address.
-