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 of
HttpRoutePlanner
that routes requests through proxy and takes into account list of hosts that should not be proxied-
Constructor Summary
ConstructorsConstructorDescriptionNonProxyListProxyRoutePlanner(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
Modifier and TypeMethodDescriptionprotected @Nullable org.apache.hc.core5.http.HttpHostdetermineProxy(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context) Methods inherited from class org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
determineLocalAddress, determineRoute, determineRoute
-
Constructor Details
-
NonProxyListProxyRoutePlanner
-
NonProxyListProxyRoutePlanner
-
-
Method Details
-
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:
determineProxyin classorg.apache.hc.client5.http.impl.routing.DefaultProxyRoutePlanner- Throws:
org.apache.hc.core5.http.HttpException
-