Package com.google.gerrit.server.util
Class SocketUtil
java.lang.Object
com.google.gerrit.server.util.SocketUtil
- 
Method SummaryModifier 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- 
isIPv6True if this InetAddress is a raw IPv6 in dotted quad notation.
- 
hostnameGet the name or IP address, or*if this address is a wildcard IP.
- 
formatFormat an address string intohost:portor*:portsyntax.
- 
formatFormat an address string intohost:portor*:portsyntax.
- 
parseParse an address string such ashost:portor*:port.
- 
resolveParse and resolve an address string, looking up the IP address.
 
-