Class SdkProxyRoutePlanner

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

    public class SdkProxyRoutePlanner
    extends org.apache.http.impl.conn.DefaultRoutePlanner
    SdkProxyRoutePlanner delegates a Proxy Route Planner from the settings instead of the system properties. It will use the proxy created from proxyHost and proxyPort and filter the hosts who matches nonProxyHosts pattern.
    • Constructor Detail

      • SdkProxyRoutePlanner

        public SdkProxyRoutePlanner​(String proxyHost,
                                    int proxyPort,
                                    String proxyProtocol,
                                    Set<String> nonProxyHosts)
    • 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