Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • scheme

        private final java.lang.String scheme
      • hostName

        private final java.lang.String hostName
      • port

        private final int port
      • attachment

        private final java.lang.Object attachment
    • 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