Package org.apache.http.impl.nio.client
Class DefaultAsyncRequestDirector<T>
java.lang.Object
org.apache.http.impl.nio.client.DefaultAsyncRequestDirector<T>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.http.concurrent.Cancellable
,org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
,org.apache.http.nio.protocol.HttpAsyncRequestProducer
,org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
@Deprecated
class DefaultAsyncRequestDirector<T>
extends Object
implements org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.http.impl.client.HttpAuthenticator
Deprecated.private final org.apache.http.params.HttpParams
Deprecated.private boolean
Deprecated.private final ClientAsyncConnectionManager
Deprecated.Deprecated.private static final AtomicLong
Deprecated.private org.apache.http.impl.client.RequestWrapper
Deprecated.private org.apache.http.HttpResponse
Deprecated.private int
Deprecated.private org.apache.http.HttpResponse
Deprecated.private org.apache.http.impl.client.RoutedRequest
Deprecated.private final org.apache.http.protocol.HttpProcessor
Deprecated.private final long
Deprecated.private final org.apache.http.conn.ConnectionKeepAliveStrategy
Deprecated.private final org.apache.http.protocol.HttpContext
Deprecated.private final org.apache.commons.logging.Log
Deprecated.private org.apache.http.impl.client.RoutedRequest
Deprecated.private ManagedClientAsyncConnection
Deprecated.private org.apache.http.impl.client.ClientParamsStack
Deprecated.private final org.apache.http.auth.AuthState
Deprecated.private final org.apache.http.client.AuthenticationStrategy
Deprecated.private int
Deprecated.private final org.apache.http.client.RedirectStrategy
Deprecated.private boolean
Deprecated.private final org.apache.http.nio.protocol.HttpAsyncRequestProducer
Deprecated.private boolean
Deprecated.private final org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
Deprecated.private final ResultCallback<T>
Deprecated.private final org.apache.http.ConnectionReuseStrategy
Deprecated.private final org.apache.http.conn.routing.HttpRouteDirector
Deprecated.private boolean
Deprecated.private final org.apache.http.conn.routing.HttpRoutePlanner
Deprecated.private final org.apache.http.auth.AuthState
Deprecated.private final org.apache.http.client.AuthenticationStrategy
Deprecated.private ByteBuffer
Deprecated.private final org.apache.http.client.UserTokenHandler
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAsyncRequestDirector
(org.apache.commons.logging.Log log, org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer, org.apache.http.protocol.HttpContext localContext, ResultCallback<T> callback, ClientAsyncConnectionManager connmgr, org.apache.http.protocol.HttpProcessor httppocessor, org.apache.http.conn.routing.HttpRoutePlanner routePlanner, org.apache.http.ConnectionReuseStrategy reuseStrategy, org.apache.http.conn.ConnectionKeepAliveStrategy keepaliveStrategy, org.apache.http.client.RedirectStrategy redirectStrategy, org.apache.http.client.AuthenticationStrategy targetAuthStrategy, org.apache.http.client.AuthenticationStrategy proxyAuthStrategy, org.apache.http.client.UserTokenHandler userTokenHandler, org.apache.http.params.HttpParams clientParams) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Deprecated.void
close()
Deprecated.private void
Deprecated.private void
Deprecated.private void
Deprecated.void
consumeContent
(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl) Deprecated.private org.apache.http.HttpRequest
createConnectRequest
(org.apache.http.conn.routing.HttpRoute route) Deprecated.protected org.apache.http.conn.routing.HttpRoute
determineRoute
(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) Deprecated.void
Deprecated.void
Deprecated.org.apache.http.HttpRequest
Deprecated.org.apache.http.ConnectionReuseStrategy
Deprecated.org.apache.http.protocol.HttpContext
Deprecated.Deprecated.org.apache.http.protocol.HttpProcessor
Deprecated.Deprecated.private AsyncSchemeRegistry
getSchemeRegistry
(org.apache.http.protocol.HttpContext context) Deprecated.org.apache.http.HttpHost
Deprecated.private org.apache.http.impl.client.RoutedRequest
Deprecated.private org.apache.http.impl.client.RoutedRequest
handleProxyChallenge
(org.apache.http.client.CredentialsProvider credsProvider) Deprecated.private org.apache.http.impl.client.RoutedRequest
Deprecated.private org.apache.http.impl.client.RoutedRequest
Deprecated.private org.apache.http.impl.client.RoutedRequest
handleTargetChallenge
(org.apache.http.client.CredentialsProvider credsProvider) Deprecated.boolean
isDone()
Deprecated.boolean
Deprecated.void
produceContent
(org.apache.http.nio.ContentEncoder encoder, org.apache.http.nio.IOControl ioctrl) Deprecated.private void
Deprecated.void
requestCompleted
(org.apache.http.protocol.HttpContext context) Deprecated.private void
Deprecated.void
Deprecated.void
responseCompleted
(org.apache.http.protocol.HttpContext context) Deprecated.void
responseReceived
(org.apache.http.HttpResponse response) Deprecated.protected void
rewriteRequestURI
(org.apache.http.impl.client.RequestWrapper request, org.apache.http.conn.routing.HttpRoute route) Deprecated.void
start()
Deprecated.private org.apache.http.impl.client.RequestWrapper
wrapRequest
(org.apache.http.HttpRequest request) Deprecated.
-
Field Details
-
COUNTER
Deprecated. -
log
private final org.apache.commons.logging.Log logDeprecated. -
requestProducer
private final org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducerDeprecated. -
responseConsumer
Deprecated. -
localContext
private final org.apache.http.protocol.HttpContext localContextDeprecated. -
resultCallback
Deprecated. -
connmgr
Deprecated. -
httppocessor
private final org.apache.http.protocol.HttpProcessor httppocessorDeprecated. -
routePlanner
private final org.apache.http.conn.routing.HttpRoutePlanner routePlannerDeprecated. -
routeDirector
private final org.apache.http.conn.routing.HttpRouteDirector routeDirectorDeprecated. -
reuseStrategy
private final org.apache.http.ConnectionReuseStrategy reuseStrategyDeprecated. -
keepaliveStrategy
private final org.apache.http.conn.ConnectionKeepAliveStrategy keepaliveStrategyDeprecated. -
redirectStrategy
private final org.apache.http.client.RedirectStrategy redirectStrategyDeprecated. -
targetAuthStrategy
private final org.apache.http.client.AuthenticationStrategy targetAuthStrategyDeprecated. -
proxyAuthStrategy
private final org.apache.http.client.AuthenticationStrategy proxyAuthStrategyDeprecated. -
userTokenHandler
private final org.apache.http.client.UserTokenHandler userTokenHandlerDeprecated. -
targetAuthState
private final org.apache.http.auth.AuthState targetAuthStateDeprecated. -
proxyAuthState
private final org.apache.http.auth.AuthState proxyAuthStateDeprecated. -
authenticator
private final org.apache.http.impl.client.HttpAuthenticator authenticatorDeprecated. -
clientParams
private final org.apache.http.params.HttpParams clientParamsDeprecated. -
id
private final long idDeprecated. -
closed
private volatile boolean closedDeprecated. -
connRequestCallback
Deprecated. -
managedConn
Deprecated. -
mainRequest
private org.apache.http.impl.client.RoutedRequest mainRequestDeprecated. -
followup
private org.apache.http.impl.client.RoutedRequest followupDeprecated. -
finalResponse
private org.apache.http.HttpResponse finalResponseDeprecated. -
params
private org.apache.http.impl.client.ClientParamsStack paramsDeprecated. -
currentRequest
private org.apache.http.impl.client.RequestWrapper currentRequestDeprecated. -
currentResponse
private org.apache.http.HttpResponse currentResponseDeprecated. -
routeEstablished
private boolean routeEstablishedDeprecated. -
redirectCount
private int redirectCountDeprecated. -
tmpbuf
Deprecated. -
requestContentProduced
private boolean requestContentProducedDeprecated. -
requestSent
private boolean requestSentDeprecated. -
execCount
private int execCountDeprecated.
-
-
Constructor Details
-
DefaultAsyncRequestDirector
public DefaultAsyncRequestDirector(org.apache.commons.logging.Log log, org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer, org.apache.http.protocol.HttpContext localContext, ResultCallback<T> callback, ClientAsyncConnectionManager connmgr, org.apache.http.protocol.HttpProcessor httppocessor, org.apache.http.conn.routing.HttpRoutePlanner routePlanner, org.apache.http.ConnectionReuseStrategy reuseStrategy, org.apache.http.conn.ConnectionKeepAliveStrategy keepaliveStrategy, org.apache.http.client.RedirectStrategy redirectStrategy, org.apache.http.client.AuthenticationStrategy targetAuthStrategy, org.apache.http.client.AuthenticationStrategy proxyAuthStrategy, org.apache.http.client.UserTokenHandler userTokenHandler, org.apache.http.params.HttpParams clientParams) Deprecated.
-
-
Method Details
-
close
public void close()Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
start
public void start()Deprecated. -
getTarget
public org.apache.http.HttpHost getTarget()Deprecated.- Specified by:
getTarget
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
generateRequest
public org.apache.http.HttpRequest generateRequest() throws IOException, org.apache.http.HttpExceptionDeprecated.- Specified by:
generateRequest
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
- Throws:
IOException
org.apache.http.HttpException
-
produceContent
public void produceContent(org.apache.http.nio.ContentEncoder encoder, org.apache.http.nio.IOControl ioctrl) throws IOException Deprecated.- Specified by:
produceContent
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
- Throws:
IOException
-
requestCompleted
public void requestCompleted(org.apache.http.protocol.HttpContext context) Deprecated.- Specified by:
requestCompleted
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
isRepeatable
public boolean isRepeatable()Deprecated.- Specified by:
isRepeatable
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
resetRequest
Deprecated.- Specified by:
resetRequest
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
- Throws:
IOException
-
responseReceived
public void responseReceived(org.apache.http.HttpResponse response) throws IOException, org.apache.http.HttpException Deprecated.- Specified by:
responseReceived
in interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
- Throws:
IOException
org.apache.http.HttpException
-
consumeContent
public void consumeContent(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl) throws IOException Deprecated.- Specified by:
consumeContent
in interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
- Throws:
IOException
-
releaseConnection
private void releaseConnection()Deprecated. -
failed
Deprecated.- Specified by:
failed
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
- Specified by:
failed
in interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
-
responseCompleted
public void responseCompleted(org.apache.http.protocol.HttpContext context) Deprecated.- Specified by:
responseCompleted
in interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
-
cancel
public boolean cancel()Deprecated.- Specified by:
cancel
in interfaceorg.apache.http.concurrent.Cancellable
-
isDone
public boolean isDone()Deprecated.- Specified by:
isDone
in interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
-
getResult
Deprecated.- Specified by:
getResult
in interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
-
getException
Deprecated.- Specified by:
getException
in interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
-
connectionRequestCompleted
Deprecated. -
connectionRequestFailed
Deprecated. -
connectionRequestCancelled
private void connectionRequestCancelled()Deprecated. -
requestConnection
private void requestConnection()Deprecated. -
endOfStream
public void endOfStream()Deprecated. -
determineRoute
protected org.apache.http.conn.routing.HttpRoute determineRoute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException Deprecated.- Throws:
org.apache.http.HttpException
-
wrapRequest
private org.apache.http.impl.client.RequestWrapper wrapRequest(org.apache.http.HttpRequest request) throws org.apache.http.ProtocolException Deprecated.- Throws:
org.apache.http.ProtocolException
-
rewriteRequestURI
protected void rewriteRequestURI(org.apache.http.impl.client.RequestWrapper request, org.apache.http.conn.routing.HttpRoute route) throws org.apache.http.ProtocolException Deprecated.- Throws:
org.apache.http.ProtocolException
-
getSchemeRegistry
Deprecated. -
createConnectRequest
private org.apache.http.HttpRequest createConnectRequest(org.apache.http.conn.routing.HttpRoute route) Deprecated. -
handleResponse
private org.apache.http.impl.client.RoutedRequest handleResponse() throws org.apache.http.HttpExceptionDeprecated.- Throws:
org.apache.http.HttpException
-
handleConnectResponse
private org.apache.http.impl.client.RoutedRequest handleConnectResponse() throws org.apache.http.HttpExceptionDeprecated.- Throws:
org.apache.http.HttpException
-
handleRedirect
private org.apache.http.impl.client.RoutedRequest handleRedirect() throws org.apache.http.HttpExceptionDeprecated.- Throws:
org.apache.http.HttpException
-
handleTargetChallenge
private org.apache.http.impl.client.RoutedRequest handleTargetChallenge(org.apache.http.client.CredentialsProvider credsProvider) throws org.apache.http.HttpException Deprecated.- Throws:
org.apache.http.HttpException
-
handleProxyChallenge
private org.apache.http.impl.client.RoutedRequest handleProxyChallenge(org.apache.http.client.CredentialsProvider credsProvider) throws org.apache.http.HttpException Deprecated.- Throws:
org.apache.http.HttpException
-
getContext
public org.apache.http.protocol.HttpContext getContext()Deprecated.- Specified by:
getContext
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
-
getHttpProcessor
public org.apache.http.protocol.HttpProcessor getHttpProcessor()Deprecated.- Specified by:
getHttpProcessor
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
-
getConnectionReuseStrategy
public org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy()Deprecated.- Specified by:
getConnectionReuseStrategy
in interfaceorg.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
-