Is Java ProxySelector guaranteed to invoke ALL outgoing TCP requests?

I am developing a multi-threaded web application with a plugin architecture where the plugins will send outgoing calls to external systems. The plugins are free to use any client library they like for the plugin system as long as the underlying protocol is TCP.

In some cases, when I call the plugin, I would like them to use a proxy (SOCKS or HTTP) for their communication. Ideally, I am writing a ProxySelector that can enforce the proxy I specify and have it transparent to the plugin.

So the question is, is the ProxySelector guaranteed for whatever outgoing (TCP) request they try to make?

At the same time, all HTTP requests passed to ProxySelector as HTTP URI, or perhaps some HTTP client library does its low level magic that will only be present in ProxySelector as socket: // URI?

+3
java proxy networking socks


source to share


No one has answered this question yet

Check out similar questions:

2108
How can I call one constructor from another in Java?
921
Including all jars in a directory in the Java classpath
7
How do I get a connection without a proxy server in Java?
3
Jsocks proxy library
3
How do I make a Socks request over an HTTP proxy?
3
Difference between HTTP (s) Reverse Proxy, TCP Proxy, Socks5 Proxy?
1
Finding socks proxy port to set to System.setProperty ("socksProxyPort") - windows java -
0
How to redirect HTTPS traffic from SOCKS proxy to HTTP proxy
0
Why is ProxySelector null in HttpUrlConnection.plainConnect ()?
0
Ruby TCPSocket via proxy



All Articles
Loading...
X
Show
Funny
Dev
Pics