Class BasicHttpClientConnectionManager.InternalConnectionEndpoint

    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface org.apache.hc.core5.util.Identifiable
      • close

        public void close​(org.apache.hc.core5.io.CloseMode closeMode)
        Specified by:
        close in interface org.apache.hc.core5.io.ModalCloseable
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • setSocketTimeout

        public void setSocketTimeout​(org.apache.hc.core5.util.Timeout timeout)
        Description copied from class: ConnectionEndpoint
        Sets the socket timeout value.
        Specified by:
        setSocketTimeout in class ConnectionEndpoint
        Parameters:
        timeout - timeout value
      • execute

        @Deprecated
        public org.apache.hc.core5.http.ClassicHttpResponse execute​(java.lang.String exchangeId,
                                                                    org.apache.hc.core5.http.ClassicHttpRequest request,
                                                                    org.apache.hc.core5.http.impl.io.HttpRequestExecutor requestExecutor,
                                                                    org.apache.hc.core5.http.protocol.HttpContext context)
                                                             throws java.io.IOException,
                                                                    org.apache.hc.core5.http.HttpException
        Specified by:
        execute in class ConnectionEndpoint
        Throws:
        java.io.IOException
        org.apache.hc.core5.http.HttpException
      • execute

        public org.apache.hc.core5.http.ClassicHttpResponse execute​(java.lang.String exchangeId,
                                                                    org.apache.hc.core5.http.ClassicHttpRequest request,
                                                                    ConnectionEndpoint.RequestExecutor requestExecutor,
                                                                    org.apache.hc.core5.http.protocol.HttpContext context)
                                                             throws java.io.IOException,
                                                                    org.apache.hc.core5.http.HttpException
        Description copied from class: ConnectionEndpoint
        Executes HTTP request using the provided request executor.

        Once the endpoint is no longer needed it MUST be released with ModalCloseable.close(org.apache.hc.core5.io.CloseMode).

        Overrides:
        execute in class ConnectionEndpoint
        Parameters:
        exchangeId - unique operation ID or null.
        request - the request message.
        requestExecutor - the request executor.
        context - the execution context.
        Throws:
        java.io.IOException
        org.apache.hc.core5.http.HttpException
        Since:
        5.4
      • get

        public org.apache.hc.core5.http.HttpConnection get()
        Specified by:
        get in interface ConnectionHolder