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.
  • Field Details

    • COUNTER

      private static final AtomicLong COUNTER
      Deprecated.
    • log

      private final org.apache.commons.logging.Log log
      Deprecated.
    • requestProducer

      private final org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer
      Deprecated.
    • responseConsumer

      private final org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer
      Deprecated.
    • localContext

      private final org.apache.http.protocol.HttpContext localContext
      Deprecated.
    • resultCallback

      private final ResultCallback<T> resultCallback
      Deprecated.
    • connmgr

      private final ClientAsyncConnectionManager connmgr
      Deprecated.
    • httppocessor

      private final org.apache.http.protocol.HttpProcessor httppocessor
      Deprecated.
    • routePlanner

      private final org.apache.http.conn.routing.HttpRoutePlanner routePlanner
      Deprecated.
    • routeDirector

      private final org.apache.http.conn.routing.HttpRouteDirector routeDirector
      Deprecated.
    • reuseStrategy

      private final org.apache.http.ConnectionReuseStrategy reuseStrategy
      Deprecated.
    • keepaliveStrategy

      private final org.apache.http.conn.ConnectionKeepAliveStrategy keepaliveStrategy
      Deprecated.
    • redirectStrategy

      private final org.apache.http.client.RedirectStrategy redirectStrategy
      Deprecated.
    • targetAuthStrategy

      private final org.apache.http.client.AuthenticationStrategy targetAuthStrategy
      Deprecated.
    • proxyAuthStrategy

      private final org.apache.http.client.AuthenticationStrategy proxyAuthStrategy
      Deprecated.
    • userTokenHandler

      private final org.apache.http.client.UserTokenHandler userTokenHandler
      Deprecated.
    • targetAuthState

      private final org.apache.http.auth.AuthState targetAuthState
      Deprecated.
    • proxyAuthState

      private final org.apache.http.auth.AuthState proxyAuthState
      Deprecated.
    • authenticator

      private final org.apache.http.impl.client.HttpAuthenticator authenticator
      Deprecated.
    • clientParams

      private final org.apache.http.params.HttpParams clientParams
      Deprecated.
    • id

      private final long id
      Deprecated.
    • closed

      private volatile boolean closed
      Deprecated.
    • connRequestCallback

      private volatile DefaultAsyncRequestDirector<T>.InternalFutureCallback connRequestCallback
      Deprecated.
    • managedConn

      private volatile ManagedClientAsyncConnection managedConn
      Deprecated.
    • mainRequest

      private org.apache.http.impl.client.RoutedRequest mainRequest
      Deprecated.
    • followup

      private org.apache.http.impl.client.RoutedRequest followup
      Deprecated.
    • finalResponse

      private org.apache.http.HttpResponse finalResponse
      Deprecated.
    • params

      private org.apache.http.impl.client.ClientParamsStack params
      Deprecated.
    • currentRequest

      private org.apache.http.impl.client.RequestWrapper currentRequest
      Deprecated.
    • currentResponse

      private org.apache.http.HttpResponse currentResponse
      Deprecated.
    • routeEstablished

      private boolean routeEstablished
      Deprecated.
    • redirectCount

      private int redirectCount
      Deprecated.
    • tmpbuf

      private ByteBuffer tmpbuf
      Deprecated.
    • requestContentProduced

      private boolean requestContentProduced
      Deprecated.
    • requestSent

      private boolean requestSent
      Deprecated.
    • execCount

      private int execCount
      Deprecated.
  • 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 interface AutoCloseable
      Specified by:
      close in interface Closeable
    • start

      public void start()
      Deprecated.
    • getTarget

      public org.apache.http.HttpHost getTarget()
      Deprecated.
      Specified by:
      getTarget in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
    • generateRequest

      public org.apache.http.HttpRequest generateRequest() throws IOException, org.apache.http.HttpException
      Deprecated.
      Specified by:
      generateRequest in interface org.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 interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
      Throws:
      IOException
    • requestCompleted

      public void requestCompleted(org.apache.http.protocol.HttpContext context)
      Deprecated.
      Specified by:
      requestCompleted in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
    • isRepeatable

      public boolean isRepeatable()
      Deprecated.
      Specified by:
      isRepeatable in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
    • resetRequest

      public void resetRequest() throws IOException
      Deprecated.
      Specified by:
      resetRequest in interface org.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 interface org.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 interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
      Throws:
      IOException
    • releaseConnection

      private void releaseConnection()
      Deprecated.
    • failed

      public void failed(Exception ex)
      Deprecated.
      Specified by:
      failed in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
      Specified by:
      failed in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
    • responseCompleted

      public void responseCompleted(org.apache.http.protocol.HttpContext context)
      Deprecated.
      Specified by:
      responseCompleted in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
    • cancel

      public boolean cancel()
      Deprecated.
      Specified by:
      cancel in interface org.apache.http.concurrent.Cancellable
    • isDone

      public boolean isDone()
      Deprecated.
      Specified by:
      isDone in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
    • getResult

      public T getResult()
      Deprecated.
      Specified by:
      getResult in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
    • getException

      public Exception getException()
      Deprecated.
      Specified by:
      getException in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
    • connectionRequestCompleted

      private void connectionRequestCompleted(ManagedClientAsyncConnection conn)
      Deprecated.
    • connectionRequestFailed

      private void connectionRequestFailed(Exception ex)
      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

      private AsyncSchemeRegistry getSchemeRegistry(org.apache.http.protocol.HttpContext context)
      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.HttpException
      Deprecated.
      Throws:
      org.apache.http.HttpException
    • handleConnectResponse

      private org.apache.http.impl.client.RoutedRequest handleConnectResponse() throws org.apache.http.HttpException
      Deprecated.
      Throws:
      org.apache.http.HttpException
    • handleRedirect

      private org.apache.http.impl.client.RoutedRequest handleRedirect() throws org.apache.http.HttpException
      Deprecated.
      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 interface org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
    • getHttpProcessor

      public org.apache.http.protocol.HttpProcessor getHttpProcessor()
      Deprecated.
      Specified by:
      getHttpProcessor in interface org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
    • getConnectionReuseStrategy

      public org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy()
      Deprecated.
      Specified by:
      getConnectionReuseStrategy in interface org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>