Examples of ProxyInfo


Examples of com.adito.agent.client.ProxyInfo

    public void testFirstProxyIsActiveProfile() throws Exception {
       
        Vector proxies = new Vector();
        Vector bypassAddr = new Vector();

        ProxyInfo proxy1 = new ProxyInfo("ssl", "", "", "host1", 12, "sourceIdent1");
        ProxyInfo proxy2 = new ProxyInfo("ssl", "", "", "host2", 13, "sourceIdent2");
        proxy2.setActiveProfile(true);
        ProxyInfo proxy3 = new ProxyInfo("ssl", "", "", "host3", 14, "sourceIdent3");

        proxies.addElement(proxy1);
        proxies.addElement(proxy2);
        proxies.addElement(proxy3);
       
View Full Code Here

Examples of com.dropbox.client2.session.Session.ProxyInfo

    /**
     * Updates the given client's proxy from the session.
     */
    private static void updateClientProxy(HttpClient client, Session session) {
        ProxyInfo proxyInfo = session.getProxyInfo();
        if (proxyInfo != null && proxyInfo.host != null && !proxyInfo.host.equals("")) {
            HttpHost proxy;
            if (proxyInfo.port < 0) {
                proxy = new HttpHost(proxyInfo.host);
            } else {
View Full Code Here

Examples of com.sun.java.browser.net.ProxyInfo

  {
    if(useProxy(LoginInfo.HTTP_PROXY)) return true;
    if(Start.applet)
    {
      try {
        ProxyInfo info[] = ProxyService.getProxyInfo(new URL(
            "http://jeti.jabberstudio.org"));
        if (info != null && info.length > 0) {
          proxyType = HTTP_PROXY;
          proxyServer = info[0].getHost();
          proxyPort = String.valueOf(info[0].getPort());
View Full Code Here

Examples of hamsam.net.ProxyInfo

    try
    {
      String host = server.substring(0, index);
      int port = Integer.parseInt(server.substring(index + 1));
      ProxyInfo info = protocol.getProxyInfo();
      SwitchboardServer sb = new SwitchboardServer(protocol, processor, host, port, info, conf);
      confSBMap.put(conf, sb);

      sb.join(authString, sessionID);
    }
View Full Code Here

Examples of hamsam.net.ProxyInfo

    ConnectionInfos.currentProtocol.setListener(
      ConnectionInfos.MyIMListener);
    ConnectionInfos.MyIMListener.setPropertiesMgr(this.propertiesMgr);
    try
    {
      ProxyInfo info = getProxyInfo();
      ConnectionInfos.currentProtocol.connect(
        this.connectionPanel.getLogin(),
        this.connectionPanel.getPassword(),
        info);
    }
View Full Code Here

Examples of hamsam.net.ProxyInfo

    int proxyPort = Integer.parseInt(prop.getValue("proxyPort"));

    switch(proxyType)
    {
      case 1:
        return new ProxyInfo(ProxyInfo.HTTP, proxyHost, proxyPort);
      case 2:
        return new ProxyInfo(ProxyInfo.SOCKS4, proxyHost, proxyPort);
      case 3:
        return new ProxyInfo(ProxyInfo.SOCKS5, proxyHost, proxyPort);
    }
   
    return new ProxyInfo();
  }
View Full Code Here

Examples of org.apache.maven.wagon.proxy.ProxyInfo

    }

    protected void openConnectionInternal()
        throws ConnectionException, AuthenticationException
    {
        final ProxyInfo proxyInfo = getProxyInfo( "http", getRepository().getHost() );
        if ( proxyInfo != null )
        {
            this.proxy = getProxy( proxyInfo );
        }
        authenticator.setWagon( this );
View Full Code Here

Examples of org.apache.maven.wagon.proxy.ProxyInfo

    {
        previousHttpsProxyHost = System.getProperty( "https.proxyHost" );
        previousHttpsProxyPort = System.getProperty( "https.proxyPort" );
        previousHttpsProxyExclusions = System.getProperty( "https.nonProxyHosts" );
       
        final ProxyInfo proxyInfo = getProxyInfo( "https", getRepository().getHost() );
        if ( proxyInfo != null )
        {
            setSystemProperty( "https.proxyHost", proxyInfo.getHost() );
            setSystemProperty( "https.proxyPort", String.valueOf( proxyInfo.getPort() ) );
            setSystemProperty( "https.nonProxyHosts", proxyInfo.getNonProxyHosts() );
        }
        else
        {
            setSystemProperty( "https.proxyHost", null );
            setSystemProperty( "https.proxyPort", null );
View Full Code Here

Examples of org.apache.maven.wagon.proxy.ProxyInfo

    }

    public void testLegacyProxyConfiguration()
        throws ConnectionException, AuthenticationException
    {
        ProxyInfo proxyInfo = new ProxyInfo();
        proxyInfo.setType( "http" );

        Repository repository = new Repository();
        wagon.connect( repository, proxyInfo );
        assertEquals( proxyInfo, wagon.getProxyInfo() );
        assertEquals( proxyInfo, wagon.getProxyInfo( "http", "www.example.com" ) );
View Full Code Here

Examples of org.apache.maven.wagon.proxy.ProxyInfo

    }

    public void testProxyConfiguration()
        throws ConnectionException, AuthenticationException
    {
        final ProxyInfo httpProxyInfo = new ProxyInfo();
        httpProxyInfo.setType( "http" );

        final ProxyInfo socksProxyInfo = new ProxyInfo();
        socksProxyInfo.setType( "http" );

        ProxyInfoProvider proxyInfoProvider = new ProxyInfoProvider()
        {
            public ProxyInfo getProxyInfo( String protocol )
            {
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.