Package net.sourceforge.squirrel_sql.fw.util

Examples of net.sourceforge.squirrel_sql.fw.util.ProxySettings


 
  public synchronized void setProxySettings(ProxySettings data)
  {
    if (data == null)
    {
      data = new ProxySettings();
    }
    final ProxySettings oldValue = _proxySettings;
    _proxySettings= data;
    getPropertyChangeReporter().firePropertyChange(IPropertyNames.PROXY,
                      oldValue, _proxySettings);
  }
View Full Code Here


      updateControlStatus();
    }

    void applyChanges(SquirrelPreferences prefs)
    {
      final ProxySettings proxySettings = new ProxySettings();

      proxySettings.setHttpUseProxy(_httpUseProxyChk.isSelected());
      proxySettings.setHttpProxyServer(_httpProxyServer.getText());
      proxySettings.setHttpProxyPort(_httpProxyPort.getText());
      proxySettings.setHttpNonProxyHosts(_httpNonProxyHosts.getText());
      proxySettings.setHttpProxyUser(_httpProxyUser.getText());

      String password = new String(_httpProxyPassword.getPassword());
      proxySettings.setHttpProxyPassword(password);

      proxySettings.setSocksUseProxy(_socksUseProxyChk.isSelected());
      proxySettings.setSocksProxyServer(_socksProxyServer.getText());
      proxySettings.setSocksProxyPort(_socksProxyPort.getText());

      prefs.setProxySettings(proxySettings);
    }
View Full Code Here

    List<ArtifactStatus> artifactStatusList = new ArrayList<ArtifactStatus>();
    ArtifactStatus mockArtifactStatus = mockHelper.createMock("mockArtifactStatus", ArtifactStatus.class);

    DownloadStatusEventHandler mockDownloadStatusListener =
      mockHelper.createMock("mockDownloadStatusEventHandler", DownloadStatusEventHandler.class);
    ProxySettings mockProxySettings = mockHelper.createMock("mockProxySettings", ProxySettings.class);
    ArtifactDownloaderFactory mockArtifactDownloaderFactory =
      mockHelper.createMock("ArtifactDownloaderFactory", ArtifactDownloaderFactory.class);
    ArtifactDownloader mockArtifactDownloader =
      mockHelper.createMock("mockArtifactDownloader", ArtifactDownloader.class);
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.util.ProxySettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.