I believe the functionality you are trying to implement is already
present in the RoutePlanner feature  in httpclient.

Just set ConnRoutePNames.DEFAULT_PROXY with the proxy you want to use
and be done with it.



http://codereview.appspot.com/1635042/show

Reply via email to