Package com.google.gerrit.server.util
Class SocketUtil
java.lang.Object
com.google.gerrit.server.util.SocketUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringFormat an address string intohost:portor*:portsyntax.static Stringformat(SocketAddress s, int defaultPort) Format an address string intohost:portor*:portsyntax.static Stringhostname(InetSocketAddress addr) Get the name or IP address, or*if this address is a wildcard IP.static booleanisIPv6(InetAddress ip) True if this InetAddress is a raw IPv6 in dotted quad notation.static InetSocketAddressParse an address string such ashost:portor*:port.static InetSocketAddressParse 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:portor*:portsyntax. -
format
Format an address string intohost:portor*:portsyntax. -
parse
Parse an address string such ashost:portor*:port. -
resolve
Parse and resolve an address string, looking up the IP address.
-