@Contract(threading=STATELESS) public class DefaultProxyRoutePlanner extends DefaultRoutePlanner
HttpRoutePlanner
that routes requests through a default proxy.Constructor and Description |
---|
DefaultProxyRoutePlanner(org.apache.hc.core5.http.HttpHost proxy) |
DefaultProxyRoutePlanner(org.apache.hc.core5.http.HttpHost proxy,
SchemePortResolver schemePortResolver) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hc.core5.http.HttpHost |
determineProxy(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.protocol.HttpContext context)
This implementation returns null.
|
determineLocalAddress, determineRoute
public DefaultProxyRoutePlanner(org.apache.hc.core5.http.HttpHost proxy, SchemePortResolver schemePortResolver)
public DefaultProxyRoutePlanner(org.apache.hc.core5.http.HttpHost proxy)
protected 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
DefaultRoutePlanner
determineProxy
in class DefaultRoutePlanner
org.apache.hc.core5.http.HttpException
- may be thrown if overriddenCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.