Http Proxy Settings Message Bus

Answered

I'm looking for a way to listen to proxy setting changes. This was already asked, but no helpful answers were given.

  • Maybe there is a message bus that behaves as a superset to the proxy settings (i.e. a message bus for any preference change)?
  • Maybe polling the proxy settings is the only solution?

Thanks

3 comments
Comment actions Permalink

As answered in other thread, there currently is no such listener/topic. Please explain in detail your use case.

0
Comment actions Permalink

Thanks, My use case is pretty much the same as the other person. The plugin I'm working on has an http client that needs to have the same proxy settings as intellij. When intellij's proxy settings are changed, the plugin needs to reconfigure this network client so that its proxy settings agree with intellij.

I understand that there isn't a message bus for proxy settings. Is there a message bus that would function as a superset to the proxy settings (like one for all preferences)? Or maybe just polling the proxy settings is the best solution?

0
Comment actions Permalink

You can poll latest settings from com.intellij.util.net.HttpConfigurable. see also com.intellij.util.net.IdeHttpClientHelpers.ApacheHttpClient4 if using Apache HTTP library.

0

Please sign in to leave a comment.