Top Description Fields Constructors Methods
org.apache.hc.core5.reactor

public final Class EndpointParameters

extends Object
implements NamedEndpoint
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.net.NamedEndpoint
Annotations
@Internal
Imports
org.apache.hc.core5.annotation.Internal, org.apache.hc.core5.http.HttpHost, org.apache.hc.core5.net.NamedEndpoint, .Ports, org.apache.hc.core5.util.Args

Endpoint initialization parameters
Since
5.1

Field Summary

Modifier and TypeField and Description
private final Object
private final String
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
EndpointParameters(final String scheme, final String hostName, final int port, final Object attachment)

public
EndpointParameters(final HttpHost host, final Object attachment)

Method Summary

Modifier and TypeMethod and Description
public Object
public String
getHostName()

Implements org.apache.hc.core5.net.NamedEndpoint.getHostName.

Returns name (IP or DNS name).
public int
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attachmentback to summary
private final Object attachment
hostNameback to summary
private final String hostName
portback to summary
private final int port
schemeback to summary
private final String scheme

Constructor Detail

EndpointParametersback to summary
public EndpointParameters(final String scheme, final String hostName, final int port, final Object attachment)
EndpointParametersback to summary
public EndpointParameters(final HttpHost host, final Object attachment)

Method Detail

getAttachmentback to summary
public Object getAttachment()
getHostNameback to summary
public String getHostName()

Implements org.apache.hc.core5.net.NamedEndpoint.getHostName.

Doc from org.apache.hc.core5.net.NamedEndpoint.getHostName.

Returns name (IP or DNS name).

Returns:String

the host name (IP or DNS name)

Annotations
@Override
getPortback to summary
public int getPort()

Implements org.apache.hc.core5.net.NamedEndpoint.getPort.

Doc from org.apache.hc.core5.net.NamedEndpoint.getPort.

Returns the port.

Returns:int

the host port, or -1 if not set

Annotations
@Override
getSchemeback to summary
public String getScheme()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override