Examples of ProxyProperties


Examples of org.apache.axis2.transport.http.HttpTransportProperties.ProxyProperties

        if ( proxyHost != null ) {
            int proxyPort = Integer.parseInt( System.getProperty( PROXY_PORT ) );
            String proxyUsername = System.getProperty( PROXY_USERNAME );
            String proxyPassword = System.getProperty( PROXY_PASSWORD );

            ProxyProperties proxyProperties = new ProxyProperties();

            proxyProperties.setProxyName( proxyHost );
            proxyProperties.setProxyPort( proxyPort );

            if ( proxyUsername != null ) {
                proxyProperties.setUserName( proxyUsername );
                proxyProperties.setPassWord( proxyPassword );

            } // if

            // in order to makesure that we use HTTP 1.0
            mPort._getServiceClient().getOptions().setProperty( HTTPConstants.HTTP_PROTOCOL_VERSION, HTTPConstants.HEADER_PROTOCOL_10 );
View Full Code Here

Examples of org.openid4java.util.ProxyProperties

    context = config.getServletContext();

    LOG.debug("context: " + context);

    // --- Forward proxy setup (only if needed) ---
    ProxyProperties proxyProps = getProxyProperties(config);
    if (proxyProps != null) {
      LOG.debug("ProxyProperties: " + proxyProps);
      HttpClientFactory.setProxyProperties(proxyProps);
    }
View Full Code Here

Examples of org.openid4java.util.ProxyProperties

   * Get proxy properties from the context init params.
   *
   * @return proxy properties
   */
  private static ProxyProperties getProxyProperties(ServletConfig config) {
    ProxyProperties proxyProps;
    String host = config.getInitParameter("proxy.host");
    LOG.debug("proxy.host: " + host);
    if (host == null) {
      proxyProps = null;
    } else {
      proxyProps = new ProxyProperties();
      String port = config.getInitParameter("proxy.port");
      String username = config.getInitParameter("proxy.username");
      String password = config.getInitParameter("proxy.password");
      String domain = config.getInitParameter("proxy.domain");
      proxyProps.setProxyHostName(host);
      proxyProps.setProxyPort(Integer.parseInt(port));
      proxyProps.setUserName(username);
      proxyProps.setPassword(password);
      proxyProps.setDomain(domain);
    }
    return proxyProps;
  }
View Full Code Here

Examples of org.openid4java.util.ProxyProperties

        try {
            // Proxy stuff, comment out when not at Massey.
            InetAddress myLocalHost = InetAddress.getLocalHost();
            //If have a 10 prefixed ip comment out this block of code if not at massey           
            if(myLocalHost.getHostAddress().startsWith("10")){
                final ProxyProperties proxyProps = new ProxyProperties();
                proxyProps.setProxyHostName("tur-cache2.massey.ac.nz");
                proxyProps.setProxyPort(8080);
                proxyProps.setUserName("08497818");
                proxyProps.setPassword("6891");
                HttpClientFactory.setProxyProperties(proxyProps);
            }
        } catch (IOException ex) {
            System.err.print(ex.getMessage());
        }
View Full Code Here

Examples of org.openid4java.util.ProxyProperties

        } else {
          username = userInfo;
        }
      }

      final ProxyProperties proxy = new ProxyProperties();
      proxy.setProxyHostName(proxyUrl.getHost());
      proxy.setProxyPort(proxyUrl.getPort());
      proxy.setUserName(username);
      proxy.setPassword(password);
      HttpClientFactory.setProxyProperties(proxy);
    }

    webSession = cf;
    identifiedUser = iu;
View Full Code Here

Examples of org.openid4java.util.ProxyProperties

    String proxyHostName = ERXProperties.stringForKey("er.openid.proxyHostName");
    if (proxyHostName != null) {
      int proxyPort = ERXProperties.intForKey("er.openid.proxyPort");
      // --- Forward proxy setup (only if needed) ---
      ProxyProperties proxyProps = new ProxyProperties();
      proxyProps.setProxyHostName(proxyHostName);
      proxyProps.setProxyPort(proxyPort);
      HttpClientFactory.setProxyProperties(proxyProps);
    }

    // perform discovery on the user-supplied identifier
    List discoveries = _manager.discover(userSuppliedString);
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.