Package org.apache.geronimo.web.info

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


    protected String appPath;
    protected int connectorPort = 1234;
    protected String hostURL = "http://localhost:" + connectorPort;

    protected void setUpStaticContentServlet(WebAppInfo webAppInfo) throws Exception {
        ServletInfo servletInfo = new ServletInfo();
        servletInfo.servletName = "default";
        servletInfo.servletClass = "org.eclipse.jetty.servlet.DefaultServlet";
        servletInfo.servletMappings.add("/");
        servletInfo.initParams.put("acceptRanges", "true");
        servletInfo.initParams.put("dirAllowed", "true");
View Full Code Here


    protected static final String POLICY_CONTEXT_ID = "securetest";
    protected GenericSecurityRealm realm;
    private Bundle bundle;

    protected void setUpStaticContentServlet(WebAppInfo webAppInfo) throws Exception {
        ServletInfo servletInfo = new ServletInfo();
        servletInfo.servletName = "default";
        servletInfo.servletClass = "org.apache.catalina.servlets.DefaultServlet";
        servletInfo.servletMappings.add("/");
        servletInfo.initParams.put("acceptRanges", "true");
        webAppInfo.servlets.add(servletInfo);
View Full Code Here

        @Override
        public void running(AbstractName abstractName) {
            try {
                JspServletInfoProvider jspServletInfoProvider = (JspServletInfoProvider) kernel.getGBean(abstractName);
                ServletInfo jspServletInfo = webAppInfoFactory.copy(jspServletInfoProvider.getJspServletInfo());
                jspServletInfo.servletMappings.clear();
                webAppInfoFactory.setJspServletInfo(jspServletInfo);
            } catch (Exception e) {
            }
        }
View Full Code Here

        @Override
        public void running(AbstractName abstractName) {
            try {
                JspServletInfoProvider jspServletInfoProvider = (JspServletInfoProvider) kernel.getGBean(abstractName);
                ServletInfo jspServletInfo = webAppInfoFactory.copy(jspServletInfoProvider.getJspServletInfo());
                jspServletInfo.servletMappings.clear();
                webAppInfoFactory.setJspServletInfo(jspServletInfo);
            } catch (Exception e) {
            }
        }
View Full Code Here

        return true;
    }

    @Override
    public ServletInfo newJspInfo(String jspFile) {
        ServletInfo servletInfo = copy(jspServletInfo);
        servletInfo.initParams.put("jspFile", jspFile);
        return servletInfo;
    }
View Full Code Here

        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>();
            for (JspConfig jspConfig : jspConfigs) {
                for (JspPropertyGroup propertyGroup : jspConfig.getJspPropertyGroup()) {
                    WebAppInfoBuilder.normalizeUrlPatterns(propertyGroup.getUrlPattern(), jspMappings);
View Full Code Here

TOP

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

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.