Package org.openxri.config

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


      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

      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

TOP

Related Classes of org.openxri.config.ProxyConfig

Copyright © 2018 www.massapicom. 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.