@Contract(threading=IMMUTABLE) public final class Host extends Object implements NamedEndpoint, Serializable
public Host(String name, int port)
public static Host create(String s) throws URISyntaxException
URISyntaxException
public String getHostName()
NamedEndpoint
getHostName
in interface NamedEndpoint
public int getPort()
NamedEndpoint
getPort
in interface NamedEndpoint
-1
if not setCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.