Package org.apache.hc.core5.net
Interface NamedEndpoint
- All Known Implementing Classes:
EndpointParameters
,Host
,HttpHost
,URIAuthority
public interface NamedEndpoint
Endpoint identified by name (usually a fully qualified domain name) and port.
- Since:
- 5.0
-
Method Summary
-
Method Details
-
getHostName
String getHostName()Returns name (IP or DNS name).- Returns:
- the host name (IP or DNS name)
-
getPort
int getPort()Returns the port.- Returns:
- the host port, or
-1
if not set
-