Class DefaultManagedHttpClientConnection

    • Method Detail

      • shutdown

        public void shutdown()
                      throws java.io.IOException
        Description copied from interface: HttpConnection
        Force-closes this connection. This is the only method of a connection which may be called from a different thread to terminate the connection. This method will not attempt to flush the transmitter's internal buffer prior to closing the underlying socket.
        Specified by:
        shutdown in interface HttpConnection
        Overrides:
        shutdown in class BHttpConnectionBase
        Throws:
        java.io.IOException
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String id)
        Description copied from interface: HttpContext
        Obtains attribute with the given name.
        Specified by:
        getAttribute in interface HttpContext
        Parameters:
        id - the attribute name.
        Returns:
        attribute value, or null if not set.
      • removeAttribute

        public java.lang.Object removeAttribute​(java.lang.String id)
        Description copied from interface: HttpContext
        Removes attribute with the given name from the context.
        Specified by:
        removeAttribute in interface HttpContext
        Parameters:
        id - the attribute name.
        Returns:
        attribute value, or null if not set.
      • setAttribute

        public void setAttribute​(java.lang.String id,
                                 java.lang.Object obj)
        Description copied from interface: HttpContext
        Sets value of the attribute with the given name.
        Specified by:
        setAttribute in interface HttpContext
        Parameters:
        id - the attribute name.
        obj - the attribute value.
      • bind

        public void bind​(java.net.Socket socket)
                  throws java.io.IOException
        Description copied from interface: ManagedHttpClientConnection
        Binds this connection to the given socket. The connection is considered open if it is bound and the underlying socket is connection to a remote host.
        Specified by:
        bind in interface ManagedHttpClientConnection
        Overrides:
        bind in class DefaultBHttpClientConnection
        Parameters:
        socket - the socket to bind the connection to.
        Throws:
        java.io.IOException
      • getSSLSession

        public javax.net.ssl.SSLSession getSSLSession()
        Description copied from interface: ManagedHttpClientConnection
        Obtains the SSL session of the underlying connection, if any. If this connection is open, and the underlying socket is an SSLSocket, the SSL session of that socket is obtained. This is a potentially blocking operation.
        Specified by:
        getSSLSession in interface ManagedHttpClientConnection
        Returns:
        the underlying SSL session if available, null otherwise