@Contract(threading=STATELESS) public class SystemDefaultRoutePlanner extends DefaultRoutePlanner
HttpRoutePlanner implementation
based on ProxySelector. By default, this class will pick up
the proxy settings of the JVM, either from system properties
or from the browser running the application.| 构造器和说明 |
|---|
SystemDefaultRoutePlanner(ProxySelector proxySelector) |
SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver,
ProxySelector proxySelector) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected HttpHost |
determineProxy(HttpHost target,
HttpContext context)
This implementation returns null.
|
determineLocalAddress, determineRoutepublic SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, ProxySelector proxySelector)
proxySelector - the proxy selector, or null for the system defaultpublic SystemDefaultRoutePlanner(ProxySelector proxySelector)
proxySelector - the proxy selector, or null for the system defaultprotected HttpHost determineProxy(HttpHost target, HttpContext context) throws HttpException
DefaultRoutePlannerdetermineProxy 在类中 DefaultRoutePlannerHttpException - may be thrown if overriddenCopyright © 2023. All rights reserved.