Package org.apache.http.nio.conn
Interface ManagedNHttpClientConnection
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,org.apache.http.HttpConnection,org.apache.http.HttpInetConnection,org.apache.http.nio.IOControl,org.apache.http.nio.NHttpClientConnection,org.apache.http.nio.NHttpConnection
- All Known Implementing Classes:
CPoolProxy,ManagedNHttpClientConnectionImpl
public interface ManagedNHttpClientConnection extends org.apache.http.nio.NHttpClientConnection, org.apache.http.HttpInetConnectionRepresents a managed connection whose state and life cycle is managed by a connection manager. This interface extendsNHttpClientConnectionwith methods to bind the connection to an arbitraryIOSessionand to obtain SSL session details.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(org.apache.http.nio.reactor.IOSession iosession)Binds connection to the given I/O session.java.lang.StringgetId()Returns connection ID which is expected to be unique for the life span of the connection manager.org.apache.http.nio.reactor.IOSessiongetIOSession()Returns the underlying I/O session.javax.net.ssl.SSLSessiongetSSLSession()Obtains the SSL session of the underlying connection, if any.-
Methods inherited from interface org.apache.http.HttpConnection
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown
-
Methods inherited from interface org.apache.http.HttpInetConnection
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort
-
Methods inherited from interface org.apache.http.nio.IOControl
requestInput, requestOutput, shutdown, suspendInput, suspendOutput
-
-
-
-
Method Detail
-
getId
java.lang.String getId()
Returns connection ID which is expected to be unique for the life span of the connection manager.
-
bind
void bind(org.apache.http.nio.reactor.IOSession iosession)
Binds connection to the given I/O session.
-
getIOSession
org.apache.http.nio.reactor.IOSession getIOSession()
Returns the underlying I/O session.
-
getSSLSession
javax.net.ssl.SSLSession getSSLSession()
Obtains the SSL session of the underlying connection, if any.- Returns:
- the underlying SSL session if available,
nullotherwise
-
-