-
Notifications
You must be signed in to change notification settings - Fork 1
Updating eclipse proxy
aneveux edited this page Oct 29, 2012
·
2 revisions
As you may know, eProxy doesn't allow to modify everything which is related to Eclipse's proxies. The idea behind this small library is to ease the way to deal with common cases (which means defining http and https proxies, and to avoid socks). So if you're in this case, you shall use eProxy which is probably the easiest way to deal with a proxy.
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 defineProxy(EProxy proxy) one. You'll just need to call it with an EProxy object. Have a look at this page in order to create easily an EProxy object.
So here's an example of code you can use:
ProxyHelper.defineProxy(new EProxyBuilder().withHost("myHost").withPort(1234)
.withDefaultNonProxyHost()
.withNonProxyHost("anotherNonProxyHost").build());