Examples of Proxy


Examples of org.moxie.Proxy

        client.getParams().setParameter(HttpMethodParams.USER_AGENT, userAgent);
    }

    String msg = "";
    if (config.useProxy(url)) {
      Proxy proxy = config.getProxy(url);
      Credentials defaultcreds = new UsernamePasswordCredentials(proxy.username, proxy.password);
      AuthScope scope = new AuthScope(proxy.host, proxy.port, AuthScope.ANY_REALM);
      HostConfiguration hc = new HostConfiguration();
      hc.setProxy(proxy.host, proxy.port);
      client.setHostConfiguration(hc);
View Full Code Here

Examples of org.openqa.selenium.Proxy

        setPort(listener.getPort());
    }

    public org.openqa.selenium.Proxy seleniumProxy() throws UnknownHostException {
        Proxy proxy = new Proxy();
        proxy.setProxyType(Proxy.ProxyType.MANUAL);
        String proxyStr = String.format("%s:%d", getLocalHost().getCanonicalHostName(), getPort());
        proxy.setHttpProxy(proxyStr);
        proxy.setSslProxy(proxyStr);

        return proxy;
    }
View Full Code Here

Examples of org.openxri.proxy.Proxy

      Constructor oConstructor = oClass.getConstructor(oConstructorArgs);

      Object[] oArgs = new Object[1];
      oArgs[0] = oConfig;
      Proxy oImpl = (Proxy) oConstructor.newInstance(oArgs);

      oImpl.init();

      soLog.debug("Successfully constructed Proxy implementation.");

      return oImpl;
    }
View Full Code Here

Examples of org.owasp.proxy.daemon.Proxy

        SSLContextSelector cp = getSSLContextSelector();
        TargetedConnectionHandler tch = new SSLConnectionHandler(cp, true, hpch);
        tch = new LoopAvoidingTargetedConnectionHandler(sg, tch);
        hpch.setConnectHandler(tch);
        TargetedConnectionHandler socks = new SocksConnectionHandler(tch, true);
        mainProxy = new Proxy(mainListener, socks, null);
        mainProxy.setSocketTimeout(90000);
        mainProxy.start();
        System.out.println("Proxy: Listener started on " + mainListener);
    }
View Full Code Here

Examples of org.owasp.webscarab.plugin.proxy.Proxy

            logger.warning("Unrecognized console log level " + consoleLogLevel);
        }
    }
   
    public static void loadAllPlugins(Framework framework, WebScarabUI uif) {
        Proxy proxy = new Proxy(framework);
        framework.addPlugin(proxy);
        ProxyPanel proxyPanel = new ProxyPanel(proxy);
        uif.addPlugin(proxyPanel);
       
        ManualEdit me = new ManualEdit();
        proxy.addPlugin(me);
        proxyPanel.addPlugin(new ManualEditPanel(me));
        BeanShell bs = new BeanShell(framework);
        proxy.addPlugin(bs);
        proxyPanel.addPlugin(new BeanShellPanel(bs));
        RevealHidden rh = new RevealHidden();
        proxy.addPlugin(rh);
        BrowserCache bc = new BrowserCache();
        proxy.addPlugin(bc);
        CookieTracker ct = new CookieTracker(framework);
        proxy.addPlugin(ct);
        proxyPanel.addPlugin(new MiscPanel(rh, bc, ct));
        SamlProxy samlProxy = new SamlProxy();
        proxy.addPlugin(samlProxy);
        OpenIdProxy openIdProxy = new OpenIdProxy();
        proxy.addPlugin(openIdProxy);
       
        ManualRequest manualRequest = new ManualRequest(framework);
        framework.addPlugin(manualRequest);
        uif.addPlugin(new ManualRequestPanel(manualRequest));
       
View Full Code Here

Examples of org.parosproxy.paros.control.Proxy

           
            browser = getBrowserDialog().getEmbeddedBrowser();
            browser.stop();
            browser.setVisible(true);
            CacheProcessingItem item = new CacheProcessingItem(ref, msg);
            Proxy proxy = Control.getSingleton().getProxy();
            proxy.setEnableCacheProcessing(true);
            proxy.addCacheProcessingList(item);
           
            getBrowserDialog().setURLTitle(msg.getRequestHeader().getURI().toString());
            if (msg.getRequestHeader().getMethod().equalsIgnoreCase(HttpRequestHeader.POST)) {
                browser.setURL(new java.net.URL(msg.getRequestHeader().getURI().toString()), msg.getRequestBody().toString());
            } else {
View Full Code Here

Examples of org.sonatype.aether.repository.Proxy

        DefaultProxySelector proxySelector = new DefaultProxySelector();
        Map<String, Map<String, String>> proxies = m_config.getProxySettings();
        for (Map<String, String> proxy : proxies.values()) {
            //The fields are user, pass, host, port, nonProxyHosts, protocol.
            String nonProxyHosts = proxy.get("nonProxyHosts");
            Proxy proxyObj = new Proxy(proxy.get("protocol"),
                    proxy.get("host"),
                    toInt(proxy.get("port")),
                    getAuthentication(proxy)
            );
            proxySelector.add(proxyObj, nonProxyHosts);
View Full Code Here

Examples of org.spoutcraft.launcher.Proxy

      Settings.setProxyHost(this.proxyHost.getText());
      Settings.setProxyPort(this.proxyPort.getText());
      Settings.setProxyUsername(this.proxyUser.getText());
      Settings.setProxyPassword(this.proxyPass.getPassword());
      Settings.setDirectJoin(this.directJoin.getText());
      Proxy proxy = new Proxy();
      proxy.setHost(Settings.getProxyHost());
      proxy.setPort(Settings.getProxyPort());
      proxy.setUser(Settings.getProxyUsername());
      proxy.setPass(Settings.getProxyPassword().toCharArray());
      proxy.setup();
      Settings.getYAML().save();
      closeForm();

      // Inform the updating thread
      if (prev != Settings.getSpoutcraftChannel() || !build.equals(Settings.getSpoutcraftSelectedBuild()) || !minecraftVersion.equals(Settings.getMinecraftVersion())) {
View Full Code Here

Examples of soc.qase.com.Proxy

  }

  private void commonSetup(boolean highThreadSafety, boolean trackInv)
  {
    threadSafe = highThreadSafety;
    proxy = new Proxy(user, highThreadSafety, trackInv);
  }
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.