Is it possible to assign a proxy for each thread in Jakarta Common's HTTPClient?
I want to have multiple threads, each using a different proxy for Jakarta Common's HTTPClient. Last time I check, it was only possible to set one global/static proxy for this API. Do开发者_如何学运维es anyone how to accomplish the prior stated goal?
I believe that the proxy is set on each httpclient instance. Therefore, it should be possible to define one httpclient instance per thread, each having their own proxy settings.
精彩评论