Package org.eclipse.tycho.p2.impl.proxy
Class ProxyServiceFacadeImpl
- java.lang.Object
-
- org.eclipse.tycho.p2.impl.proxy.ProxyServiceFacadeImpl
-
- All Implemented Interfaces:
ProxyServiceFacade
public class ProxyServiceFacadeImpl extends Object implements ProxyServiceFacade
-
-
Constructor Summary
Constructors Constructor Description ProxyServiceFacadeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearPersistentProxySettings()
Discard persistent proxy settings.void
configureProxy(String protocol, String host, int port, String user, String password, String nonProxyHosts)
Configure the OSGI proxy service for the protocol specified.void
setProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService)
void
unsetProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService)
-
-
-
Method Detail
-
configureProxy
public void configureProxy(String protocol, String host, int port, String user, String password, String nonProxyHosts)
Description copied from interface:ProxyServiceFacade
Configure the OSGI proxy service for the protocol specified. Parameter values are assumed to be taken from {@see org.apache.maven.settings.Proxy}- Specified by:
configureProxy
in interfaceProxyServiceFacade
- Parameters:
protocol
- proxy protocolhost
- proxy hostport
- proxy portuser
- may benull
password
- may benull
nonProxyHosts
- pipe-separated list of non-proxied hosts, may benull
-
clearPersistentProxySettings
public void clearPersistentProxySettings()
Description copied from interface:ProxyServiceFacade
Discard persistent proxy settings. This is needed because org.eclipse.core.net.proxy.IProxyService always remembers its settings in eclipse/configuration/.settings/org.eclipse.core.net.prefs. Otherwise proxy settings would survive across OSGi framework restarts and thus influence subsequent builds.- Specified by:
clearPersistentProxySettings
in interfaceProxyServiceFacade
-
setProxyServer
public void setProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService)
-
unsetProxyServer
public void unsetProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService)
-
-