Class ProxyMappingsAwareRoutePlanner

  • All Implemented Interfaces:
    org.apache.http.conn.routing.HttpRoutePlanner

    public class ProxyMappingsAwareRoutePlanner
    extends org.apache.http.impl.conn.DefaultRoutePlanner
    A DefaultRoutePlanner that determines the proxy to use for a given target hostname by consulting the given ProxyMappings.
    Author:
    Thomas Darimont
    See Also:
    ProxyMappings
    • Constructor Detail

      • ProxyMappingsAwareRoutePlanner

        public ProxyMappingsAwareRoutePlanner​(ProxyMappings proxyMappings)
    • Method Detail

      • determineProxy

        protected org.apache.http.HttpHost determineProxy​(org.apache.http.HttpHost target,
                                                          org.apache.http.HttpRequest request,
                                                          org.apache.http.protocol.HttpContext context)
                                                   throws org.apache.http.HttpException
        Overrides:
        determineProxy in class org.apache.http.impl.conn.DefaultRoutePlanner
        Throws:
        org.apache.http.HttpException