Examples of ProxyConfig


Examples of org.jboss.aerogear.unifiedpush.model.ProxyConfig

         * @param proxyPassword Password for user authentication.
         * @return the current {@link Builder} instance
         */
        public Builder proxyPassword(String proxyPassword) {
            if (proxy == null) {
                proxy = new ProxyConfig(Proxy.Type.HTTP);
            }
            proxy.setProxyPassword(proxyPassword);
            return this;
        }
View Full Code Here

Examples of org.jboss.aerogear.unifiedpush.model.ProxyConfig

         * @param proxyType Type of proxy as
         * @return the current {@link Builder} instance
         */
        public Builder proxyType(Proxy.Type proxyType) {
            if (proxy == null) {
                proxy = new ProxyConfig(Proxy.Type.HTTP);
            }
            proxy.setProxyType(proxyType);
            return this;
        }
View Full Code Here

Examples of org.jboss.resteasy.client.ProxyConfig

   protected Map<String, Object> attributes = new HashMap<String, Object>();


   public ClientInvoker(URI baseUri, Class declaring, Method method, ResteasyProviderFactory providerFactory, ClientExecutor executor, EntityExtractorFactory extractorFactory)
   {
     this(baseUri, declaring, method, new ProxyConfig(null, executor, providerFactory, extractorFactory, null, null, null));
   }
View Full Code Here

Examples of org.jboss.resteasy.client.jaxrs.ProxyConfig

                  return null;

               return new ClientInvoker((ResteasyWebTarget)(context.getInvocation().getClient().target(uri)),
                       method.getDeclaringClass(),
                       method,
                       new ProxyConfig(Thread.currentThread().getContextClassLoader(), null, null)).invoke(args);
            }
         };
      }

      if (returnType == String.class)
View Full Code Here

Examples of org.openxri.config.ProxyConfig

    String sProxyConfigClass = oServletConfig.getInitParameter(PROXY_CONFIG_CLASS);
    if (sProxyConfigClass == null) sProxyConfigClass = DEFAULT_PROXY_CONFIG_CLASS;

    // initialize the configuration object

    ProxyConfig oConfig = null;

    try
    {
      Class oConfigClass = Class.forName(sProxyConfigClass);
      oConfig = (ProxyConfig) oConfigClass.newInstance();

      Hashtable oParameters = new Hashtable();
      oParameters.put(ProxyConfig.PROXY_CONTEXT_KEY, oServletConfig.getServletContext());
      Enumeration oEnum = oServletConfig.getInitParameterNames();
      while (oEnum.hasMoreElements())
      {
        String sKey = (String) oEnum.nextElement();
        oParameters.put(sKey, oServletConfig.getInitParameter(sKey));
      }

      oConfig.init(oParameters);
    } catch (Exception ex) {

      throw new ServletException("Failed to instantiate server config class " + sProxyConfigClass, ex);
    }
View Full Code Here

Examples of org.openxri.config.ProxyConfig

      parameters.put(sKey, servletConfig.getInitParameter(sKey));
    }

    // get the configuration object

    ProxyConfig proxyConfig = ProxyConfigFactory.getInstance().getProxyConfig(parameters);

    // now initialize the servlet

    init(proxyConfig);
  } // init()
View Full Code Here

Examples of org.openxri.config.ProxyConfig

      Constructor oConstructor = oClass.getConstructor(oConstructorArgs);

      Object[] oArgs = new Object[1];
      oArgs[0] = parameters;
      ProxyConfig oImpl = (ProxyConfig) oConstructor.newInstance(oArgs);

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

      oImpl.init();

      return oImpl;
    }
    catch (ClassNotFoundException oEx)
    {
View Full Code Here

Examples of org.sonatype.nexus.component.source.api.http.ProxyConfig

    }
    return null;
  }

  private ProxyConfig proxyFromMap(final Map<String, Object> configMap) {
    ProxyConfig proxyConfig = null;
    HttpProxyConfig httpProxyConfig = httpProxyFromMap(configMap, "http.proxy.http");
    if (httpProxyConfig != null) {
      proxyConfig = new ProxyConfig();
      proxyConfig.withHttpProxyConfig(httpProxyConfig);
      proxyConfig.withHttpsProxyConfig(httpProxyFromMap(configMap, "http.proxy.https"));
      if (configMap.containsKey("http.proxy.nonProxyHosts")) {
        proxyConfig.withNonProxyHosts(((String) configMap.get("http.proxy.nonProxyHosts")).split(","));
      }
    }
    return proxyConfig;
  }
View Full Code Here

Examples of org.sonatype.nexus.component.source.api.http.ProxyConfig

        )
        .withAuthenticationConfig(new UsernameAuthenticationConfig()
            .withUsername("foo")
            .withPassword("bar")
        )
        .withProxyConfig(new ProxyConfig()
            .withHttpProxyConfig(new HttpProxyConfig()
                .withHostname("httpHost")
                .withPort(3)
                .withAuthenticationConfig(new UsernameAuthenticationConfig()
                    .withUsername("foo1")
View Full Code Here

Examples of org.springframework.aop.framework.ProxyConfig

  public void testForceProxyTargetClass() {
    ClassPathXmlApplicationContext bf = new ClassPathXmlApplicationContext(
        "/org/springframework/aop/aspectj/autoproxy/aspectsWithCGLIB.xml");

    ProxyConfig pc = (ProxyConfig) bf.getBean(AopConfigUtils.AUTO_PROXY_CREATOR_BEAN_NAME);
    assertTrue("should be proxying classes", pc.isProxyTargetClass());
  }
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.