public class HostPort extends Object
Parse a string in the form "host:port", handling IPv4 an IPv6 hosts
public HostPort(String authority) throws IllegalArgumentException
IllegalArgumentException
public String getHost()
public int getPort()
public int getPort(int defaultPort)
defaultPort,
- the default port to return if a port is not specifiedCopyright © 1995-2017 Webtide. All Rights Reserved.