开发者

Is it possible to assign a proxy for each thread in Jakarta Common's HTTPClient?

开发者 https://www.devze.com 2022-12-19 09:05 出处:网络
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开发者_如何学运维

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消