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. |
javax.net.ssl.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
- if an I/O error occursEndpointDetails getEndpointDetails()
SocketAddress getLocalAddress()
null
if it is not bound yet.null
if it is not bound yet.ProtocolVersion getProtocolVersion()
null
if unknown.null
if unknown.SocketAddress getRemoteAddress()
null
if it is not connected yet or
unconnected.null
if it is not connected yet or
unconnected.javax.net.ssl.SSLSession getSSLSession()
null
if TLS has not been activated.null
if TLS has not been activated.boolean isOpen()