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