Package io.dropwizard.client.proxy
Class NonProxyListProxyRoutePlanner
- java.lang.Object
-
- org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
-
- org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
-
- io.dropwizard.client.proxy.NonProxyListProxyRoutePlanner
-
- All Implemented Interfaces:
org.apache.hc.client5.http.routing.HttpRoutePlanner
public class NonProxyListProxyRoutePlanner extends org.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
Implementation ofHttpRoutePlanner
that routes requests through proxy and takes into account list of hosts that should not be proxied
-
-
Constructor Summary
Constructors Constructor Description NonProxyListProxyRoutePlanner(org.apache.hc.core5.http.HttpHost proxy, @Nullable List<String> nonProxyHosts)
NonProxyListProxyRoutePlanner(org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.client5.http.SchemePortResolver schemePortResolver, @Nullable List<String> nonProxyHosts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @Nullable org.apache.hc.core5.http.HttpHost
determineProxy(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context)
protected List<Pattern>
getNonProxyHostPatterns()
-
-
-
Method Detail
-
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 classorg.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner
- Throws:
org.apache.hc.core5.http.HttpException
-
-