Top Description Methods
org.apache.hc.core5.net

public Interface NamedEndpoint

Known Direct Implementers
org.apache.hc.core5.net.URIAuthority, org.apache.hc.core5.reactor.EndpointParameters, org.apache.hc.core5.http.HttpHost, org.apache.hc.core5.net.Host

Endpoint identified by name (usually a fully qualified domain name) and port.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the host name (IP or DNS name)
getHostName
()

Returns name (IP or DNS name).

public int

Returns:

the host port, or -1 if not set
getPort
()

Returns the port.

Method Detail

getHostNameback to summary
public String getHostName()

Returns name (IP or DNS name).

Returns:String

the host name (IP or DNS name)

getPortback to summary
public int getPort()

Returns the port.

Returns:int

the host port, or -1 if not set