Package org.openxri.server

Examples of org.openxri.server.ServerConfig


        {
            sServerConfigClass = DEFAULT_SERVER_CONFIG_CLASS;
        }
       
        // initialize the configuration class
        ServerConfig oConfig = null;
        try
        {
            Class oConfigClass = Class.forName(sServerConfigClass);
            oConfig = (ServerConfig) oConfigClass.newInstance();
           
            Hashtable oParameters = new Hashtable();
            oParameters.put(ServerConfig.SERVLET_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 e)
        {
            throw new ServletException("Failed to instantiate server config class " + sServerConfigClass, e);
        }
View Full Code Here

TOP

Related Classes of org.openxri.server.ServerConfig

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.