Package org.impalaframework.web.servlet.wrapper

Examples of org.impalaframework.web.servlet.wrapper.RequestModuleMapping


        if (prefix != null) {
            fullModuleName = prefix + moduleName;
        } else {
            fullModuleName = moduleName;
        }
        return new RequestModuleMapping("/" + moduleName, fullModuleName, null);
    }
View Full Code Here


        if (prefix != null) {
            fullModuleName = prefix + moduleName;
        } else {
            fullModuleName = moduleName;
        }
        return new RequestModuleMapping("/" + moduleName, fullModuleName, null, null);
    }
View Full Code Here

   
    protected void doService(HttpServletRequest request, HttpServletResponse response,
            ServletContext context)
            throws ServletException, IOException {
       
        RequestModuleMapping moduleMapping = getModuleMapping(request);
        String applicationId = getApplicationId(request, context);
       
        if (moduleMapping != null) {
           
            processMapping(context, request, response, moduleMapping, applicationId);
View Full Code Here

   
    public RequestModuleMapping getModuleForRequest(HttpServletRequest request) {
        Assert.notNull(requestModuleMappers, "requestModuleMappers cannot be null");
        Assert.notEmpty(requestModuleMappers, "requestModuleMappers cannot be empty");
        for (RequestModuleMapper requestModuleMapper : requestModuleMappers) {
            final RequestModuleMapping module = requestModuleMapper.getModuleForRequest(request);
            if (module != null) return module;
        }
        return null;
    }
View Full Code Here

        if (modulePrefixNode == null) {
            return null;
        }
       
        ModuleNameWithPath value = modulePrefixNode.getValue();
        return new RequestModuleMapping(modulePrefixNode.getKey(), value.getModuleName(), value.getContextPath(), value.getServletPath());
    }
View Full Code Here

        if (prefix != null) {
            fullModuleName = prefix + moduleName;
        } else {
            fullModuleName = moduleName;
        }
        return new RequestModuleMapping("/" + moduleName, fullModuleName, null);
    }
View Full Code Here

    void doService(HttpServletRequest request, HttpServletResponse response,
            ServletContext context)
            throws ServletException, IOException {
       
        RequestModuleMapping moduleMapping = getModuleMapping(request);
        String applicationId = getApplicationId(request, context);
       
        if (moduleMapping != null) {
           
            processMapping(context, request, response, moduleMapping, applicationId);
View Full Code Here

    void doFilter(HttpServletRequest request, HttpServletResponse response,
            ServletContext context, FilterChain chain)
            throws ServletException, IOException {

        RequestModuleMapping moduleMapping = getModuleMapping(request);
        String applicationId = getApplicationId(request, context);
       
        if (moduleMapping != null) {
            processMapping(context, request, response, chain, moduleMapping, applicationId);
        } else {
View Full Code Here

        expect(request.getRequestURI()).andReturn("/app/servletPath/extra/path/info");
        expectNotForwardOrInclude();
       
        replay(request, servletContext);
       
        MappedHttpServletRequest wrapper = new MappedHttpServletRequest(servletContext, request, httpSessionWrapper, new RequestModuleMapping("/sp", "module", null, "/servletPath"), applicationId);
        assertEquals("/servletPath", wrapper.getServletPath());
        assertEquals("/extra/path/info", wrapper.getPathInfo());
        assertEquals("/app", wrapper.getContextPath());
       
        verify(request, servletContext);
View Full Code Here

        expect(request.getRequestURI()).andReturn("/app/cp/servletPath/extra/path/info");
        expectNotForwardOrInclude();
       
        replay(request, servletContext);
       
        MappedHttpServletRequest wrapper = new MappedHttpServletRequest(servletContext, request, httpSessionWrapper, new RequestModuleMapping("/sp", "module", "/cp", "/servletPath"), applicationId);
        assertEquals("/servletPath", wrapper.getServletPath());
        assertEquals("/extra/path/info", wrapper.getPathInfo());
        assertEquals("/app/cp", wrapper.getContextPath());
       
        verify(request, servletContext);
View Full Code Here

TOP

Related Classes of org.impalaframework.web.servlet.wrapper.RequestModuleMapping

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.