java.lang.Object | |
↳ | org.apache.http.impl.conn.ProxySelectorRoutePlanner |
This class is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
Default implementation of an HttpRoutePlanner
.
This implementation is based on ProxySelector
.
By default, it will pick up the proxy settings of the JVM, either
from system properties or from the browser running the application.
Additionally, it interprets some
parameters
,
though not the DEFAULT_PROXY
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
proxySelector |
The proxy selector to use, or null for system default.
|
||||||||||
schemeRegistry | The scheme registry. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new proxy selector route planner.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines the route for a request.
| |||||||||||
Obtains the proxy selector to use.
| |||||||||||
Sets the proxy selector to use.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines a proxy for the given target.
| |||||||||||
Obtains a host from an
InetSocketAddress .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.conn.routing.HttpRoutePlanner
|
The proxy selector to use, or null
for system default.
Creates a new proxy selector route planner.
schreg | the scheme registry |
---|---|
prosel | the proxy selector, or
null for the system default
|
Determines the route for a request.
target | the target host for the request.
Implementations may accept null
if they can still determine a route, for example
to a default target or by inspecting the request. |
---|---|
request | the request to execute |
context | the context to use for the subsequent execution.
Implementations may accept null . |
HttpException |
---|
Obtains the proxy selector to use.
null
for the system default
Sets the proxy selector to use.
prosel | the proxy selector, or
null to use the system default
|
---|
Determines a proxy for the given target.
target | the planned target, never null |
---|---|
request | the request to be sent, never null |
context | the context, or null |
null
for a direct routeHttpException | in case of system proxy settings that cannot be handled |
---|
Obtains a host from an InetSocketAddress
.
isa | the socket address |
---|