org.sonatype.tycho.p2.impl.proxy
Class ProxyServiceFacadeImpl

java.lang.Object
  extended by org.sonatype.tycho.p2.impl.proxy.ProxyServiceFacadeImpl
All Implemented Interfaces:
ProxyServiceFacade

public class ProxyServiceFacadeImpl
extends Object
implements ProxyServiceFacade


Constructor Summary
ProxyServiceFacadeImpl(org.osgi.framework.BundleContext context)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyServiceFacadeImpl

public ProxyServiceFacadeImpl(org.osgi.framework.BundleContext context)
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 Proxy

Specified by:
configureProxy in interface ProxyServiceFacade
Parameters:
protocol - proxy protocol
host - proxy host
port - proxy port
user - may be null
password - may be null
nonProxyHosts - pipe-separated list of non-proxied hosts, may be null

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 interface ProxyServiceFacade


Copyright © 2008-2011. All Rights Reserved.