views:

47

answers:

2

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?

+2  A: 

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 ProxySelector that uses a ThreadLocal table internally to provide different selectors based on the calling thread.

erickson
Yes, thanks....
Zombies