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) classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.http.impl.client.HttpAuthenticatorDeprecated.private final org.apache.http.params.HttpParamsDeprecated.private booleanDeprecated.private final ClientAsyncConnectionManagerDeprecated.Deprecated.private static final AtomicLongDeprecated.private org.apache.http.impl.client.RequestWrapperDeprecated.private org.apache.http.HttpResponseDeprecated.private intDeprecated.private org.apache.http.HttpResponseDeprecated.private org.apache.http.impl.client.RoutedRequestDeprecated.private final org.apache.http.protocol.HttpProcessorDeprecated.private final longDeprecated.private final org.apache.http.conn.ConnectionKeepAliveStrategyDeprecated.private final org.apache.http.protocol.HttpContextDeprecated.private final org.apache.commons.logging.LogDeprecated.private org.apache.http.impl.client.RoutedRequestDeprecated.private ManagedClientAsyncConnectionDeprecated.private org.apache.http.impl.client.ClientParamsStackDeprecated.private final org.apache.http.auth.AuthStateDeprecated.private final org.apache.http.client.AuthenticationStrategyDeprecated.private intDeprecated.private final org.apache.http.client.RedirectStrategyDeprecated.private booleanDeprecated.private final org.apache.http.nio.protocol.HttpAsyncRequestProducerDeprecated.private booleanDeprecated.private final org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> Deprecated.private final ResultCallback<T> Deprecated.private final org.apache.http.ConnectionReuseStrategyDeprecated.private final org.apache.http.conn.routing.HttpRouteDirectorDeprecated.private booleanDeprecated.private final org.apache.http.conn.routing.HttpRoutePlannerDeprecated.private final org.apache.http.auth.AuthStateDeprecated.private final org.apache.http.client.AuthenticationStrategyDeprecated.private ByteBufferDeprecated.private final org.apache.http.client.UserTokenHandlerDeprecated. -
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 TypeMethodDescriptionbooleancancel()Deprecated.voidclose()Deprecated.private voidDeprecated.private voidDeprecated.private voidDeprecated.voidconsumeContent(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl) Deprecated.private org.apache.http.HttpRequestcreateConnectRequest(org.apache.http.conn.routing.HttpRoute route) Deprecated.protected org.apache.http.conn.routing.HttpRoutedetermineRoute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) Deprecated.voidDeprecated.voidDeprecated.org.apache.http.HttpRequestDeprecated.org.apache.http.ConnectionReuseStrategyDeprecated.org.apache.http.protocol.HttpContextDeprecated.Deprecated.org.apache.http.protocol.HttpProcessorDeprecated.Deprecated.private AsyncSchemeRegistrygetSchemeRegistry(org.apache.http.protocol.HttpContext context) Deprecated.org.apache.http.HttpHostDeprecated.private org.apache.http.impl.client.RoutedRequestDeprecated.private org.apache.http.impl.client.RoutedRequesthandleProxyChallenge(org.apache.http.client.CredentialsProvider credsProvider) Deprecated.private org.apache.http.impl.client.RoutedRequestDeprecated.private org.apache.http.impl.client.RoutedRequestDeprecated.private org.apache.http.impl.client.RoutedRequesthandleTargetChallenge(org.apache.http.client.CredentialsProvider credsProvider) Deprecated.booleanisDone()Deprecated.booleanDeprecated.voidproduceContent(org.apache.http.nio.ContentEncoder encoder, org.apache.http.nio.IOControl ioctrl) Deprecated.private voidDeprecated.voidrequestCompleted(org.apache.http.protocol.HttpContext context) Deprecated.private voidDeprecated.voidDeprecated.voidresponseCompleted(org.apache.http.protocol.HttpContext context) Deprecated.voidresponseReceived(org.apache.http.HttpResponse response) Deprecated.protected voidrewriteRequestURI(org.apache.http.impl.client.RequestWrapper request, org.apache.http.conn.routing.HttpRoute route) Deprecated.voidstart()Deprecated.private org.apache.http.impl.client.RequestWrapperwrapRequest(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
start
public void start()Deprecated. -
getTarget
public org.apache.http.HttpHost getTarget()Deprecated.- Specified by:
getTargetin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
generateRequest
public org.apache.http.HttpRequest generateRequest() throws IOException, org.apache.http.HttpExceptionDeprecated.- Specified by:
generateRequestin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer- Throws:
IOExceptionorg.apache.http.HttpException
-
produceContent
public void produceContent(org.apache.http.nio.ContentEncoder encoder, org.apache.http.nio.IOControl ioctrl) throws IOException Deprecated.- Specified by:
produceContentin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer- Throws:
IOException
-
requestCompleted
public void requestCompleted(org.apache.http.protocol.HttpContext context) Deprecated.- Specified by:
requestCompletedin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
isRepeatable
public boolean isRepeatable()Deprecated.- Specified by:
isRepeatablein interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
resetRequest
Deprecated.- Specified by:
resetRequestin 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:
responseReceivedin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>- Throws:
IOExceptionorg.apache.http.HttpException
-
consumeContent
public void consumeContent(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl) throws IOException Deprecated.- Specified by:
consumeContentin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>- Throws:
IOException
-
releaseConnection
private void releaseConnection()Deprecated. -
failed
-
responseCompleted
public void responseCompleted(org.apache.http.protocol.HttpContext context) Deprecated.- Specified by:
responseCompletedin interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
-
cancel
public boolean cancel()Deprecated.- Specified by:
cancelin interfaceorg.apache.http.concurrent.Cancellable
-
isDone
public boolean isDone()Deprecated.- Specified by:
isDonein interfaceorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
-
getResult
-
getException
-
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:
getContextin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
-
getHttpProcessor
public org.apache.http.protocol.HttpProcessor getHttpProcessor()Deprecated.- Specified by:
getHttpProcessorin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
-
getConnectionReuseStrategy
public org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy()Deprecated.- Specified by:
getConnectionReuseStrategyin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
-