-
Notifications
You must be signed in to change notification settings - Fork 1
Reading eclipse proxy
aneveux edited this page Oct 29, 2012
·
1 revision
You may know that eProxy API doesn't allow to cover all the cases related to Eclipse proxies' management, but aims at easing the common cases related to proxies: those which use HTTP and HTTPS, and not SOCKS. If you're in this case, then you shall use eProxy APIs if you need some easily readable source code.
In the com.github.aneveux.eproxy.api, you can use the ProxyHelper class. It contains various methods related to proxies management, and in our case, we'll need to use the EProxy getProxyInformation() one. You just need to call it, and it'll return an EProxy object containing all the information you need.
Here's a small example:
ProxyHelper.getProxyInformation().getHost();