Package org.apache.hc.core5.reactor
Class EndpointParameters
java.lang.Object
org.apache.hc.core5.reactor.EndpointParameters
- All Implemented Interfaces:
NamedEndpoint
Endpoint initialization parameters
- Since:
- 5.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEndpointParameters
(String scheme, String hostName, int port, Object attachment) EndpointParameters
(HttpHost host, Object attachment) -
Method Summary
-
Field Details
-
scheme
-
hostName
-
port
private final int port -
attachment
-
-
Constructor Details
-
EndpointParameters
-
EndpointParameters
-
-
Method Details
-
getScheme
-
getHostName
Description copied from interface:NamedEndpoint
Returns name (IP or DNS name).- Specified by:
getHostName
in interfaceNamedEndpoint
- Returns:
- the host name (IP or DNS name)
-
getPort
public int getPort()Description copied from interface:NamedEndpoint
Returns the port.- Specified by:
getPort
in interfaceNamedEndpoint
- Returns:
- the host port, or
-1
if not set
-
getAttachment
-
toString
-