Class NonProxyListProxyRoutePlanner

  • All Implemented Interfaces:
    org.apache.hc.client5.http.routing.HttpRoutePlanner

    public class NonProxyListProxyRoutePlanner
    extends org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
    Implementation of HttpRoutePlanner that routes requests through proxy and takes into account list of hosts that should not be proxied
    • Constructor Detail

      • NonProxyListProxyRoutePlanner

        public NonProxyListProxyRoutePlanner​(org.apache.hc.core5.http.HttpHost proxy,
                                             @Nullable List<String> nonProxyHosts)
      • NonProxyListProxyRoutePlanner

        public NonProxyListProxyRoutePlanner​(org.apache.hc.core5.http.HttpHost proxy,
                                             org.apache.hc.client5.http.SchemePortResolver schemePortResolver,
                                             @Nullable List<String> nonProxyHosts)
    • Method Detail

      • getNonProxyHostPatterns

        protected List<Pattern> getNonProxyHostPatterns()
      • determineProxy

        protected @Nullable org.apache.hc.core5.http.HttpHost determineProxy​(org.apache.hc.core5.http.HttpHost target,
                                                                             org.apache.hc.core5.http.protocol.HttpContext context)
                                                                      throws org.apache.hc.core5.http.HttpException
        Overrides:
        determineProxy in class org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
        Throws:
        org.apache.hc.core5.http.HttpException