Package org.apache.http.impl.nio.conn
Class ManagedClientAsyncConnectionImpl
- java.lang.Object
-
- org.apache.http.impl.nio.conn.ManagedClientAsyncConnectionImpl
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.http.conn.ConnectionReleaseTrigger,org.apache.http.conn.HttpRoutedConnection,org.apache.http.HttpConnection,org.apache.http.HttpInetConnection,ManagedClientAsyncConnection,org.apache.http.nio.IOControl,org.apache.http.nio.NHttpClientConnection,org.apache.http.nio.NHttpConnection
@Deprecated class ManagedClientAsyncConnectionImpl extends java.lang.Object implements ManagedClientAsyncConnection
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description private ClientAsyncConnectionFactoryconnFactoryDeprecated.private longdurationDeprecated.private ClientAsyncConnectionManagermanagerDeprecated.private HttpPoolEntrypoolEntryDeprecated.private booleanreusableDeprecated.
-
Constructor Summary
Constructors Constructor Description ManagedClientAsyncConnectionImpl(ClientAsyncConnectionManager manager, ClientAsyncConnectionFactory connFactory, HttpPoolEntry poolEntry)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidabortConnection()Deprecated.voidclose()Deprecated.(package private) HttpPoolEntrydetach()Deprecated.private ClientAsyncConnectionensureConnection()Deprecated.private HttpPoolEntryensurePoolEntry()Deprecated.private ClientAsyncConnectiongetConnection()Deprecated.org.apache.http.protocol.HttpContextgetContext()Deprecated.org.apache.http.HttpRequestgetHttpRequest()Deprecated.org.apache.http.HttpResponsegetHttpResponse()Deprecated.java.net.InetAddressgetLocalAddress()Deprecated.intgetLocalPort()Deprecated.ClientAsyncConnectionManagergetManager()Deprecated.org.apache.http.HttpConnectionMetricsgetMetrics()Deprecated.(package private) HttpPoolEntrygetPoolEntry()Deprecated.java.net.InetAddressgetRemoteAddress()Deprecated.intgetRemotePort()Deprecated.org.apache.http.conn.routing.HttpRoutegetRoute()Deprecated.private AsyncSchemeRegistrygetSchemeRegistry(org.apache.http.protocol.HttpContext context)Deprecated.intgetSocketTimeout()Deprecated.javax.net.ssl.SSLSessiongetSSLSession()Deprecated.java.lang.ObjectgetState()Deprecated.intgetStatus()Deprecated.booleanisMarkedReusable()Deprecated.booleanisOpen()Deprecated.booleanisRequestSubmitted()Deprecated.booleanisSecure()Deprecated.booleanisStale()Deprecated.voidlayerProtocol(org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params)Deprecated.voidmarkReusable()Deprecated.voidopen(org.apache.http.conn.routing.HttpRoute route, org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params)Deprecated.voidreleaseConnection()Deprecated.voidrequestInput()Deprecated.voidrequestOutput()Deprecated.voidresetInput()Deprecated.voidresetOutput()Deprecated.voidsetIdleDuration(long duration, java.util.concurrent.TimeUnit unit)Deprecated.voidsetSocketTimeout(int timeout)Deprecated.voidsetState(java.lang.Object state)Deprecated.voidshutdown()Deprecated.voidsubmitRequest(org.apache.http.HttpRequest request)Deprecated.voidsuspendInput()Deprecated.voidsuspendOutput()Deprecated.java.lang.StringtoString()Deprecated.voidtunnelProxy(org.apache.http.HttpHost next, org.apache.http.params.HttpParams params)Deprecated.voidtunnelTarget(org.apache.http.params.HttpParams params)Deprecated.voidunmarkReusable()Deprecated.
-
-
-
Field Detail
-
manager
private final ClientAsyncConnectionManager manager
Deprecated.
-
connFactory
private final ClientAsyncConnectionFactory connFactory
Deprecated.
-
poolEntry
private volatile HttpPoolEntry poolEntry
Deprecated.
-
reusable
private volatile boolean reusable
Deprecated.
-
duration
private volatile long duration
Deprecated.
-
-
Constructor Detail
-
ManagedClientAsyncConnectionImpl
ManagedClientAsyncConnectionImpl(ClientAsyncConnectionManager manager, ClientAsyncConnectionFactory connFactory, HttpPoolEntry poolEntry)
Deprecated.
-
-
Method Detail
-
getPoolEntry
HttpPoolEntry getPoolEntry()
Deprecated.
-
detach
HttpPoolEntry detach()
Deprecated.
-
getManager
public ClientAsyncConnectionManager getManager()
Deprecated.
-
getConnection
private ClientAsyncConnection getConnection()
Deprecated.
-
ensureConnection
private ClientAsyncConnection ensureConnection()
Deprecated.
-
ensurePoolEntry
private HttpPoolEntry ensurePoolEntry()
Deprecated.
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceorg.apache.http.HttpConnection- Throws:
java.io.IOException
-
shutdown
public void shutdown() throws java.io.IOExceptionDeprecated.- Specified by:
shutdownin interfaceorg.apache.http.HttpConnection- Specified by:
shutdownin interfaceorg.apache.http.nio.IOControl- Throws:
java.io.IOException
-
isOpen
public boolean isOpen()
Deprecated.- Specified by:
isOpenin interfaceorg.apache.http.HttpConnection
-
isStale
public boolean isStale()
Deprecated.- Specified by:
isStalein interfaceorg.apache.http.HttpConnection
-
setSocketTimeout
public void setSocketTimeout(int timeout)
Deprecated.- Specified by:
setSocketTimeoutin interfaceorg.apache.http.HttpConnection
-
getSocketTimeout
public int getSocketTimeout()
Deprecated.- Specified by:
getSocketTimeoutin interfaceorg.apache.http.HttpConnection
-
getMetrics
public org.apache.http.HttpConnectionMetrics getMetrics()
Deprecated.- Specified by:
getMetricsin interfaceorg.apache.http.HttpConnection
-
getLocalAddress
public java.net.InetAddress getLocalAddress()
Deprecated.- Specified by:
getLocalAddressin interfaceorg.apache.http.HttpInetConnection
-
getLocalPort
public int getLocalPort()
Deprecated.- Specified by:
getLocalPortin interfaceorg.apache.http.HttpInetConnection
-
getRemoteAddress
public java.net.InetAddress getRemoteAddress()
Deprecated.- Specified by:
getRemoteAddressin interfaceorg.apache.http.HttpInetConnection
-
getRemotePort
public int getRemotePort()
Deprecated.- Specified by:
getRemotePortin interfaceorg.apache.http.HttpInetConnection
-
getStatus
public int getStatus()
Deprecated.- Specified by:
getStatusin interfaceorg.apache.http.nio.NHttpConnection
-
getHttpRequest
public org.apache.http.HttpRequest getHttpRequest()
Deprecated.- Specified by:
getHttpRequestin interfaceorg.apache.http.nio.NHttpConnection
-
getHttpResponse
public org.apache.http.HttpResponse getHttpResponse()
Deprecated.- Specified by:
getHttpResponsein interfaceorg.apache.http.nio.NHttpConnection
-
getContext
public org.apache.http.protocol.HttpContext getContext()
Deprecated.- Specified by:
getContextin interfaceorg.apache.http.nio.NHttpConnection
-
requestInput
public void requestInput()
Deprecated.- Specified by:
requestInputin interfaceorg.apache.http.nio.IOControl
-
suspendInput
public void suspendInput()
Deprecated.- Specified by:
suspendInputin interfaceorg.apache.http.nio.IOControl
-
requestOutput
public void requestOutput()
Deprecated.- Specified by:
requestOutputin interfaceorg.apache.http.nio.IOControl
-
suspendOutput
public void suspendOutput()
Deprecated.- Specified by:
suspendOutputin interfaceorg.apache.http.nio.IOControl
-
submitRequest
public void submitRequest(org.apache.http.HttpRequest request) throws java.io.IOException, org.apache.http.HttpExceptionDeprecated.- Specified by:
submitRequestin interfaceorg.apache.http.nio.NHttpClientConnection- Throws:
java.io.IOExceptionorg.apache.http.HttpException
-
isRequestSubmitted
public boolean isRequestSubmitted()
Deprecated.- Specified by:
isRequestSubmittedin interfaceorg.apache.http.nio.NHttpClientConnection
-
resetOutput
public void resetOutput()
Deprecated.- Specified by:
resetOutputin interfaceorg.apache.http.nio.NHttpClientConnection
-
resetInput
public void resetInput()
Deprecated.- Specified by:
resetInputin interfaceorg.apache.http.nio.NHttpClientConnection
-
isSecure
public boolean isSecure()
Deprecated.- Specified by:
isSecurein interfaceorg.apache.http.conn.HttpRoutedConnection
-
getRoute
public org.apache.http.conn.routing.HttpRoute getRoute()
Deprecated.- Specified by:
getRoutein interfaceorg.apache.http.conn.HttpRoutedConnection
-
getSSLSession
public javax.net.ssl.SSLSession getSSLSession()
Deprecated.- Specified by:
getSSLSessionin interfaceorg.apache.http.conn.HttpRoutedConnection
-
getState
public java.lang.Object getState()
Deprecated.- Specified by:
getStatein interfaceManagedClientAsyncConnection
-
setState
public void setState(java.lang.Object state)
Deprecated.- Specified by:
setStatein interfaceManagedClientAsyncConnection
-
markReusable
public void markReusable()
Deprecated.- Specified by:
markReusablein interfaceManagedClientAsyncConnection
-
unmarkReusable
public void unmarkReusable()
Deprecated.- Specified by:
unmarkReusablein interfaceManagedClientAsyncConnection
-
isMarkedReusable
public boolean isMarkedReusable()
Deprecated.- Specified by:
isMarkedReusablein interfaceManagedClientAsyncConnection
-
setIdleDuration
public void setIdleDuration(long duration, java.util.concurrent.TimeUnit unit)Deprecated.- Specified by:
setIdleDurationin interfaceManagedClientAsyncConnection
-
getSchemeRegistry
private AsyncSchemeRegistry getSchemeRegistry(org.apache.http.protocol.HttpContext context)
Deprecated.
-
open
public void open(org.apache.http.conn.routing.HttpRoute route, org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params) throws java.io.IOExceptionDeprecated.- Specified by:
openin interfaceManagedClientAsyncConnection- Throws:
java.io.IOException
-
tunnelProxy
public void tunnelProxy(org.apache.http.HttpHost next, org.apache.http.params.HttpParams params) throws java.io.IOExceptionDeprecated.- Specified by:
tunnelProxyin interfaceManagedClientAsyncConnection- Throws:
java.io.IOException
-
tunnelTarget
public void tunnelTarget(org.apache.http.params.HttpParams params) throws java.io.IOExceptionDeprecated.- Specified by:
tunnelTargetin interfaceManagedClientAsyncConnection- Throws:
java.io.IOException
-
layerProtocol
public void layerProtocol(org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params) throws java.io.IOExceptionDeprecated.- Specified by:
layerProtocolin interfaceManagedClientAsyncConnection- Throws:
java.io.IOException
-
releaseConnection
public void releaseConnection()
Deprecated.- Specified by:
releaseConnectionin interfaceorg.apache.http.conn.ConnectionReleaseTrigger
-
abortConnection
public void abortConnection()
Deprecated.- Specified by:
abortConnectionin interfaceorg.apache.http.conn.ConnectionReleaseTrigger
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-