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.Objectattachmentprivate java.lang.StringhostNameprivate intportprivate java.lang.Stringscheme
-
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.ObjectgetAttachment()java.lang.StringgetHostName()Returns name (IP or DNS name).intgetPort()Returns the port.java.lang.StringgetScheme()java.lang.StringtoString()
-
-
-
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:NamedEndpointReturns name (IP or DNS name).- Specified by:
getHostNamein interfaceNamedEndpoint- Returns:
- the host name (IP or DNS name)
-
getPort
public int getPort()
Description copied from interface:NamedEndpointReturns the port.- Specified by:
getPortin interfaceNamedEndpoint- Returns:
- the host port, or
-1if not set
-
getAttachment
public java.lang.Object getAttachment()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-