Package org.apache.geronimo.web.info

Examples of org.apache.geronimo.web.info.WebAppInfo


* @version $Rev: 995287 $ $Date: 2010-09-09 08:12:07 +0800 (Thu, 09 Sep 2010) $
*/
public class BasicTest extends TestCase {
   
    public void testJspModuleBuilderExtension() throws Exception {
        WebAppInfo webAppInfo = new WebAppInfo();
        webAppInfo.servlets.add(new ServletInfo());
        JspModuleBuilderExtension instance = new JspModuleBuilderExtension(null, null, webAppInfo, new NamingBuilderCollection(Collections.EMPTY_SET));
    }
View Full Code Here


        EARContext moduleContext = module.getEarContext();
        Map sharedContext = module.getSharedContext();
        //add the ServletContextListener to the web app context
        GBeanData webAppData = (GBeanData) sharedContext.get(WebModule.WEB_APP_DATA);
        // add myfaces listener
        WebAppInfo webAppInfo = (WebAppInfo) webAppData.getAttribute("webAppInfo");
        if (webAppInfo != null && !webAppInfo.listeners.contains(CONTEXT_LISTENER_NAME)) {
            webAppInfo.listeners.add(0, CONTEXT_LISTENER_NAME);
        }
        AbstractName moduleName = moduleContext.getModuleName();
        Map<EARContext.Key, Object> buildingContext = new HashMap<EARContext.Key, Object>();
View Full Code Here

    }

    protected void setUp() throws Exception {
        appPath = "war1";
        super.setUp();
        WebAppInfo webAppInfo = new WebAppInfo();
        setUpStaticContentServlet(webAppInfo);
        setUpAppContext(null, null, "policyContextID", null, "war1/", webAppInfo);
    }
View Full Code Here

            webAppData.setReferencePattern("ContextCustomizer", jspLifecycleName);
        }

        WebAppInfoBuilder webAppInfoBuilder = (WebAppInfoBuilder)sharedContext.get(WebModule.WEB_APP_INFO);
        if (webAppInfoBuilder != null) {
            WebAppInfo webAppInfo = webAppInfoBuilder.getWebAppInfo();
            webAppInfo.listeners.addAll(listenerNames);
            //install default jsp servlet....
            ServletInfo jspServlet = webAppInfoBuilder.copy(defaultJspServletInfo);
            List<JspConfig> jspConfigs = webApp.getJspConfig();
            List<String> jspMappings = new ArrayList<String>();
View Full Code Here

            };
        bundleContext.registerService(PackageAdmin.class.getName(), packageAdmin, null);
        builder = new JettyModuleBuilder(defaultEnvironment,
                new Integer(1800),
                jettyContainerObjectName,
                new WebAppInfo(),
                null,
                pojoWebServiceTemplate,
                Collections.singleton(webServiceBuilder),
                null,
                Arrays.asList(new GBeanBuilder(null, null), securityBuilder),
View Full Code Here

       
        // check url-pattern and multiplicities
        WebDeploymentValidationUtils.validateWebApp(webApp);
       
        List<String> problems = new ArrayList<String>();
        WebAppInfo webAppInfo = webAppInfoFactory.newWebAppInfo();

        addParams(webApp.getContextParam(), webAppInfo.contextParams);

        webAppInfo.contextRoot = webApp.getContextRoot();
View Full Code Here

* @version $Rev:$ $Date:$
*/
public class DefaultWebAppInfoFactory implements WebAppInfoFactory {
    @Override
    public WebAppInfo newWebAppInfo() {
        return new WebAppInfo();
    }
View Full Code Here

            }
            //stuff that jetty used to do
            webModuleData.setAttribute("displayName", webApp.getDisplayName());

            WebAppInfoBuilder webAppInfoBuilder = new WebAppInfoBuilder(webApp, webAppInfoFactory);
            WebAppInfo webAppInfo = webAppInfoBuilder.build();

            webModuleData.setAttribute("webAppInfo", webAppInfo);

            webModule.getSharedContext().put(WebModule.WEB_APP_INFO, webAppInfoBuilder);
View Full Code Here

        if( log.isDebugEnabled() )
            log.debug("Creating EJBWebService context '" + contextPath + "'.");

        TomcatEJBWebServiceContext context = new TomcatEJBWebServiceContext(contextPath, webServiceContainer, classLoader);
        Subject defaultSubject = ContextManager.EMPTY;
        WebAppInfo webAppInfo = new WebAppInfo();
        ContextConfig config = new EjbWsContextConfig(webAppInfo, policyContextId,  configurationFactory, defaultSubject, authMethod, realmName);
        context.addLifecycleListener(config);

        String virtualServer;
        if (virtualHosts != null && virtualHosts.length > 0) {
View Full Code Here

                }
            };
        bundleContext.registerService(PackageAdmin.class.getName(), packageAdmin, null);
        builder = new TomcatModuleBuilder(defaultEnvironment,
                tomcatContainerObjectName,
                new WebAppInfo(),
                null,
                Collections.singleton(webServiceBuilder),
                Arrays.asList(new GBeanBuilder(null, null), new GeronimoSecurityBuilderImpl(null, null, null)),
                new NamingBuilderCollection(null),
                Collections.EMPTY_LIST,
View Full Code Here

TOP

Related Classes of org.apache.geronimo.web.info.WebAppInfo

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.