Examples of ProxySettings


Examples of com.github.tomakehurst.wiremock.common.ProxySettings

    @Test
    public void canProxyViaAForwardProxy() {
        WireMockServer forwardProxy = new WireMockServer(wireMockConfig().port(8187).enableBrowserProxying(true));
        forwardProxy.start();
        init(wireMockConfig().proxyVia(new ProxySettings("localhost", 8187)));

        targetServiceAdmin.register(get(urlEqualTo("/proxy-via")).willReturn(aResponse().withStatus(200)));
        proxyingServiceAdmin.register(get(urlEqualTo("/proxy-via")).willReturn(aResponse().proxiedFrom(TARGET_SERVICE_BASE_URL)));

        assertThat(testClient.get("/proxy-via").statusCode(), is(200));
View Full Code Here

Examples of com.github.tomakehurst.wiremock.common.ProxySettings

        assertThat(ProxySettings.fromString("myhost.com").port(), is(80));
    }

    @Test
    public void parsesHostAndPortCorrectly() {
        ProxySettings settings = ProxySettings.fromString("some.host.org:8888");
        assertThat(settings.host(), is("some.host.org"));
        assertThat(settings.port(), is(8888));
    }
View Full Code Here

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

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

      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

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

    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

Examples of org.jboss.forge.shell.util.ProxySettings

      ShellMessages.success(out, "Installed from [" + gitRepo + "] successfully.");
      restart();
   }

   private void prepareProxyForJGit() {
       ProxySettings proxySettings = getProxySettings();
       if (proxySettings == null) {
           // There is no proxy configured
           return;
       }
      if (!(ProxySelector.getDefault() instanceof ForgeProxySelector)) {
View Full Code Here

Examples of org.jboss.forge.shell.util.ProxySettings

      System.exit(0);
   }

   private void prepareProxyForJGit()
   {
      ProxySettings proxySettings = ProxySettings.fromForgeConfiguration(configuration);
      if (proxySettings == null)
      {
         // There is no proxy configured
         return;
      }
View Full Code Here

Examples of org.jboss.forge.shell.util.ProxySettings

      System.exit(0);
   }

   private void prepareProxyForJGit()
   {
      ProxySettings proxySettings = ProxySettings.fromForgeConfiguration(configuration);
      if (proxySettings == null)
      {
         // There is no proxy configured
         return;
      }
View Full Code Here

Examples of org.jboss.forge.shell.util.ProxySettings

      restart();
   }

   private void prepareProxyForJGit()
   {
      ProxySettings proxySettings = getProxySettings();
      if (proxySettings == null)
      {
         // There is no proxy configured
         return;
      }
View Full Code Here

Examples of org.jboss.forge.shell.util.ProxySettings

      System.exit(0);
   }

   private void prepareProxyForJGit()
   {
      ProxySettings proxySettings = ProxySettings.fromForgeConfiguration(configuration);
      if (proxySettings == null)
      {
         // There is no proxy configured
         return;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.