Package org.apache.hc.core5.reactor
Class EndpointParameters
- java.lang.Object
-
- org.apache.hc.core5.reactor.EndpointParameters
-
- All Implemented Interfaces:
NamedEndpoint
@Internal public final class EndpointParameters extends java.lang.Object implements NamedEndpoint
Endpoint initialization parameters- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
attachment
private java.lang.String
hostName
private int
port
private java.lang.String
scheme
-
Constructor Summary
Constructors Constructor Description EndpointParameters(java.lang.String scheme, java.lang.String hostName, int port, java.lang.Object attachment)
EndpointParameters(HttpHost host, java.lang.Object attachment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getAttachment()
java.lang.String
getHostName()
Returns name (IP or DNS name).int
getPort()
Returns the port.java.lang.String
getScheme()
java.lang.String
toString()
-
-
-
Constructor Detail
-
EndpointParameters
public EndpointParameters(java.lang.String scheme, java.lang.String hostName, int port, java.lang.Object attachment)
-
EndpointParameters
public EndpointParameters(HttpHost host, java.lang.Object attachment)
-
-
Method Detail
-
getScheme
public java.lang.String getScheme()
-
getHostName
public java.lang.String 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
public java.lang.Object getAttachment()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-