Class MainClientExec

    • Field Detail

      • log

        private final org.apache.commons.logging.Log log
      • httpProcessor

        private final org.apache.http.protocol.HttpProcessor httpProcessor
      • proxyHttpProcessor

        private final org.apache.http.protocol.HttpProcessor proxyHttpProcessor
      • routePlanner

        private final org.apache.http.conn.routing.HttpRoutePlanner routePlanner
      • targetAuthStrategy

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

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

        private final org.apache.http.client.UserTokenHandler userTokenHandler
      • redirectStrategy

        private final org.apache.http.client.RedirectStrategy redirectStrategy
      • routeDirector

        private final org.apache.http.conn.routing.HttpRouteDirector routeDirector
      • authenticator

        private final org.apache.http.impl.auth.HttpAuthenticator authenticator
    • Constructor Detail

      • MainClientExec

        public MainClientExec​(org.apache.http.protocol.HttpProcessor httpProcessor,
                              org.apache.http.conn.routing.HttpRoutePlanner routePlanner,
                              org.apache.http.client.RedirectStrategy redirectStrategy,
                              org.apache.http.client.AuthenticationStrategy targetAuthStrategy,
                              org.apache.http.client.AuthenticationStrategy proxyAuthStrategy,
                              org.apache.http.client.UserTokenHandler userTokenHandler)
    • Method Detail

      • prepare

        public void prepare​(org.apache.http.HttpHost target,
                            org.apache.http.HttpRequest original,
                            InternalState state,
                            AbstractClientExchangeHandler handler)
                     throws org.apache.http.HttpException,
                            java.io.IOException
        Specified by:
        prepare in interface InternalClientExec
        Throws:
        org.apache.http.HttpException
        java.io.IOException
      • produceContent

        public void produceContent​(InternalState state,
                                   org.apache.http.nio.ContentEncoder encoder,
                                   org.apache.http.nio.IOControl ioctrl)
                            throws java.io.IOException
        Specified by:
        produceContent in interface InternalClientExec
        Throws:
        java.io.IOException
      • consumeContent

        public void consumeContent​(InternalState state,
                                   org.apache.http.nio.ContentDecoder decoder,
                                   org.apache.http.nio.IOControl ioctrl)
                            throws java.io.IOException
        Specified by:
        consumeContent in interface InternalClientExec
        Throws:
        java.io.IOException
      • rewriteRequestURI

        private void rewriteRequestURI​(org.apache.http.client.methods.HttpRequestWrapper request,
                                       org.apache.http.conn.routing.HttpRoute route)
                                throws org.apache.http.ProtocolException
        Throws:
        org.apache.http.ProtocolException
      • prepareRequest

        private void prepareRequest​(InternalState state,
                                    AbstractClientExchangeHandler handler)
                             throws java.io.IOException,
                                    org.apache.http.HttpException
        Throws:
        java.io.IOException
        org.apache.http.HttpException
      • createConnectRequest

        private org.apache.http.HttpRequest createConnectRequest​(org.apache.http.conn.routing.HttpRoute route,
                                                                 InternalState state)
                                                          throws java.io.IOException,
                                                                 org.apache.http.HttpException
        Throws:
        java.io.IOException
        org.apache.http.HttpException