Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複数のスレッドが必要で、それぞれがJakartaCommonのHTTPClientに異なるプロキシを使用しています。前回確認したところ、このAPIに設定できるグローバル/静的プロキシは1つだけでした。前に述べた目標を達成する方法はありますか?
プロキシは各 httpclient インスタンスに設定されていると思います。したがって、スレッドごとに 1 つの httpclient インスタンスを定義し、それぞれに独自のプロキシ設定を持たせることができるはずです。