public interface HttpConnection extends SocketModalCloseable
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes this connection gracefully. | 
| EndpointDetails | getEndpointDetails()Returns this connection's endpoint details. | 
| SocketAddress | getLocalAddress()Returns this connection's local address or  nullif it is not bound yet. | 
| ProtocolVersion | getProtocolVersion()Returns this connection's protocol version or  nullif unknown. | 
| SocketAddress | getRemoteAddress()Returns this connection's remote address or  nullif it is not connected yet or
 unconnected. | 
| SSLSession | getSSLSession()Returns this connection's SSL session or  nullif TLS has not been activated. | 
| boolean | isOpen()Checks if this connection is open. | 
getSocketTimeout, setSocketTimeoutclosevoid close()
           throws IOException
shutdown instead.close in interface AutoCloseableclose in interface CloseableIOExceptionEndpointDetails getEndpointDetails()
SocketAddress getLocalAddress()
null if it is not bound yet.null if it is not bound yet.SocketAddress getRemoteAddress()
null if it is not connected yet or
 unconnected.null if it is not connected yet or
         unconnected.ProtocolVersion getProtocolVersion()
null if unknown.null if unknown.SSLSession getSSLSession()
null if TLS has not been activated.null if TLS has not been activated.boolean isOpen()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.