Class EndpointParameters

java.lang.Object
org.apache.hc.core5.reactor.EndpointParameters
All Implemented Interfaces:
NamedEndpoint

@Internal public final class EndpointParameters extends Object implements NamedEndpoint
Endpoint initialization parameters
Since:
5.1
  • Field Details

    • scheme

      private final String scheme
    • hostName

      private final String hostName
    • port

      private final int port
    • attachment

      private final Object attachment
  • Constructor Details

    • EndpointParameters

      public EndpointParameters(String scheme, String hostName, int port, Object attachment)
    • EndpointParameters

      public EndpointParameters(HttpHost host, Object attachment)
  • Method Details

    • getScheme

      public String getScheme()
    • getHostName

      public String getHostName()
      Description copied from interface: NamedEndpoint
      Returns name (IP or DNS name).
      Specified by:
      getHostName in interface NamedEndpoint
      Returns:
      the host name (IP or DNS name)
    • getPort

      public int getPort()
      Description copied from interface: NamedEndpoint
      Returns the port.
      Specified by:
      getPort in interface NamedEndpoint
      Returns:
      the host port, or -1 if not set
    • getAttachment

      public Object getAttachment()
    • toString

      public String toString()
      Overrides:
      toString in class Object