Class EndpointParameters

  • All Implemented Interfaces:
    NamedEndpoint

    @Internal
    public final class EndpointParameters
    extends java.lang.Object
    implements NamedEndpoint
    Endpoint initialization parameters
    Since:
    5.1
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 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 java.lang.Object getAttachment()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object