Using ProxySelector to allow users to configure the proxy
Paulo Levi
i30817 at gmail.com
Mon May 4 03:40:05 PDT 2009
Anyone read the first message at all? The problem is that other proxy
requests are effectively ignored after a DIRECT connection even if it fails.
What i am trying right now is implementing ProxySelector so that a "manual"
proxy configuration is added at the end of the
public List<Proxy> select(final URI uri)
return list, and only requesting configuration from the user if
public void connectFailed(final URI uri, final SocketAddress sa, final
IOException ioe)
function is called.
Obviously this won't work how the current setup is done. What is so special
about direct connection requests that they must break the proxy chain of
responsibility?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20090504/9a13d125/attachment.html
More information about the net-dev
mailing list