I would like to use different proxies instead of just one. Currently the ProxySelector sets a system wide proxy for all URLConnections. Does anyone know of a library that supports non system-wide proxies. Just something as simple as adding the appropriate proxy http headers/socks layers?
I would like to use different proxies instead of just one. Currently the ProxySelector
Share
You can specify a proxy when opening a
URLConnection. Is that what you mean?If you want something that works automatically, you could implement a
ProxySelectorthat uses aThreadLocaltable internally to provide different selectors based on the calling thread.