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
null if it is not bound yet. |
ProtocolVersion |
getProtocolVersion()
Returns this connection's protocol version or
null if unknown. |
SocketAddress |
getRemoteAddress()
Returns this connection's remote address or
null if it is not connected yet or
unconnected. |
SSLSession |
getSSLSession()
Returns this connection's SSL session or
null if TLS has not been activated. |
boolean |
isOpen()
Checks if this connection is open.
|
getSocketTimeout, setSocketTimeout
close
void close() throws IOException
shutdown
instead.close
in interface AutoCloseable
close
in interface Closeable
IOException
EndpointDetails 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–2021 The Apache Software Foundation. All rights reserved.