public class NetUtils extends Object
Constructor and Description |
---|
NetUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
formatInetAddr(InetSocketAddress addr) |
static String[] |
getIPV6HostAndPort(String hostPort)
Separates host and port from given host port string if host port string is enclosed
within square bracket.
|
public static String formatInetAddr(InetSocketAddress addr)
public static String[] getIPV6HostAndPort(String hostPort)
hostPort
- host port stringCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.