Florent Georges wrote:
Oleg Kalnichevski wrote:
If you want HttpClient to use proxy system properties, try out
the route planner implementation based on java.net.ProxySelector
DefaultHttpClient httpclient = new DefaultHttpClient();
ProxySelectorRoutePlanner routePlanner = new
ProxySelectorRoutePlanner(
httpclient.getConnectionManager().getSchemeRegistry(),
ProxySelector.getDefault());
httpclient.setRoutePlanner(routePlanner);
That works great. Thanks to both of you!
BTW, why such useful methods are not on the HttpClient interface, but rather
on the AbstractHttpClient class (not even in a second interface)? Is there any
rational for that choice?
Mainly to make it simpler by hiding non-essential details, thus easier
to implement and decorate.
Oleg
Thanks again, regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]