Class DefaultAsyncRequestDirector<T>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.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 java.lang.Object
    implements org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler<T>
    Deprecated.
    • Constructor Summary

      Constructors 
      Constructor Description
      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.
       
    • Field Detail

      • COUNTER

        private static final java.util.concurrent.atomic.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.
      • 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.
      • 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 java.nio.ByteBuffer tmpbuf
        Deprecated.
      • requestContentProduced

        private boolean requestContentProduced
        Deprecated.
      • requestSent

        private boolean requestSent
        Deprecated.
      • execCount

        private int execCount
        Deprecated.
    • Constructor Detail

      • 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 Detail

      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.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 java.io.IOException,
                                                           org.apache.http.HttpException
        Deprecated.
        Specified by:
        generateRequest in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
        Throws:
        java.io.IOException
        org.apache.http.HttpException
      • produceContent

        public void produceContent​(org.apache.http.nio.ContentEncoder encoder,
                                   org.apache.http.nio.IOControl ioctrl)
                            throws java.io.IOException
        Deprecated.
        Specified by:
        produceContent in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
        Throws:
        java.io.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 java.io.IOException
        Deprecated.
        Specified by:
        resetRequest in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
        Throws:
        java.io.IOException
      • responseReceived

        public void responseReceived​(org.apache.http.HttpResponse response)
                              throws java.io.IOException,
                                     org.apache.http.HttpException
        Deprecated.
        Specified by:
        responseReceived in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
        Throws:
        java.io.IOException
        org.apache.http.HttpException
      • consumeContent

        public void consumeContent​(org.apache.http.nio.ContentDecoder decoder,
                                   org.apache.http.nio.IOControl ioctrl)
                            throws java.io.IOException
        Deprecated.
        Specified by:
        consumeContent in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
        Throws:
        java.io.IOException
      • releaseConnection

        private void releaseConnection()
        Deprecated.
      • failed

        public void failed​(java.lang.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 java.lang.Exception getException()
        Deprecated.
        Specified by:
        getException in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
      • connectionRequestFailed

        private void connectionRequestFailed​(java.lang.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>