public class ProxyServiceFacadeImpl extends java.lang.Object implements ProxyServiceFacade
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
MAVEN_SETTINGS_SOURCE |
private static java.util.regex.Pattern |
NON_PROXY_DELIMITERS |
private org.eclipse.core.net.proxy.IProxyService |
proxyService |
Constructor and Description |
---|
ProxyServiceFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearPersistentProxySettings()
Discard persistent proxy settings.
|
void |
configureProxy(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String user,
java.lang.String password,
java.lang.String nonProxyHosts)
Configure the OSGI proxy service for the protocol specified.
|
private static java.lang.String |
getProxyType(java.lang.String protocol) |
private static void |
recursiveClear(org.osgi.service.prefs.Preferences preferences) |
private void |
registerAuthenticator(java.lang.String user,
java.lang.String password) |
void |
setProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService) |
void |
unsetProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService) |
private static final java.lang.String MAVEN_SETTINGS_SOURCE
private static final java.util.regex.Pattern NON_PROXY_DELIMITERS
private org.eclipse.core.net.proxy.IProxyService proxyService
public void configureProxy(java.lang.String protocol, java.lang.String host, int port, java.lang.String user, java.lang.String password, java.lang.String nonProxyHosts)
ProxyServiceFacade
Proxy
configureProxy
in interface ProxyServiceFacade
protocol
- proxy protocolhost
- proxy hostport
- proxy portuser
- may be null
password
- may be null
nonProxyHosts
- pipe-separated list of non-proxied hosts, may be null
private void registerAuthenticator(java.lang.String user, java.lang.String password)
private static java.lang.String getProxyType(java.lang.String protocol)
public void clearPersistentProxySettings()
ProxyServiceFacade
clearPersistentProxySettings
in interface ProxyServiceFacade
private static void recursiveClear(org.osgi.service.prefs.Preferences preferences) throws org.osgi.service.prefs.BackingStoreException
org.osgi.service.prefs.BackingStoreException
public void setProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService)
public void unsetProxyServer(org.eclipse.core.net.proxy.IProxyService proxyService)