org.apache.http.impl.conn
Class SystemDefaultRoutePlanner
java.lang.Object
org.apache.http.impl.conn.DefaultRoutePlanner
org.apache.http.impl.conn.SystemDefaultRoutePlanner
- All Implemented Interfaces:
- HttpRoutePlanner
@Contract(threading=IMMUTABLE_CONDITIONAL)
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.
- Since:
- 4.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemDefaultRoutePlanner
public SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver,
ProxySelector proxySelector)
- Parameters:
proxySelector
- the proxy selector, or null
for the system default
SystemDefaultRoutePlanner
public SystemDefaultRoutePlanner(ProxySelector proxySelector)
- Parameters:
proxySelector
- the proxy selector, or null
for the system default
determineProxy
protected HttpHost determineProxy(HttpHost target,
HttpRequest request,
HttpContext context)
throws HttpException
- Description copied from class:
DefaultRoutePlanner
- This implementation returns null.
- Overrides:
determineProxy
in class DefaultRoutePlanner
- Throws:
HttpException
- may be thrown if overridden
Copyright © 1999–2018 The Apache Software Foundation. All rights reserved.