Examples of HttpServletRequestWrapper


Examples of javax.servlet.http.HttpServletRequestWrapper

    }

    @Test
    public void doFilterDoesNotWrapWithDebugRequestWrapperAgain() throws Exception {
        when(request.getAttribute(requestAttr)).thenReturn(Boolean.TRUE);
        HttpServletRequest fireWalledRequest = new HttpServletRequestWrapper(new DebugRequestWrapper(this.request));

        filter.doFilter(fireWalledRequest, response, filterChain);

        verify(fcp).doFilter(fireWalledRequest, response, filterChain);
    }
View Full Code Here

Examples of org.apache.cactus.server.HttpServletRequestWrapper

     */
    public void testPageContext() throws IOException
    {       
        assertNotNull("Page context should not be null", pageContext);

        HttpServletRequestWrapper wrappedRequest =
            (HttpServletRequestWrapper) pageContext.getRequest();          
        assertSame(request.getOriginalRequest(),
            wrappedRequest.getOriginalRequest());

        assertSame(response, pageContext.getResponse());

        ServletConfigWrapper wrappedConfig =
            (ServletConfigWrapper) pageContext.getServletConfig();          
View Full Code Here

Examples of org.apache.struts.faces.util.HttpServletRequestWrapper

            if (log.isTraceEnabled()) {
                log.trace("  Creating new FacesContext for '" + uri + "'");
            }
            FacesContextFactory fcf = (FacesContextFactory)
                FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
            HttpServletRequestWrapper wrapper = new HttpServletRequestWrapper(request, uri);
            context = fcf.getFacesContext(servlet.getServletContext(), wrapper,
                                          response, lifecycle);
        }

        // Create a new view root
View Full Code Here

Examples of org.exist.http.servlets.HttpServletRequestWrapper

        final Descriptor descriptor = Descriptor.getDescriptorSingleton();
        if( descriptor.allowRequestLogging() && !descriptor.requestsFiltered()) {
            // Wrap HttpServletRequest, because both request Logger and xmlrpc
            // need the request InputStream, which is consumed when read.
            request =
                new HttpServletRequestWrapper(request, /*formEncoding*/ "utf-8" );
            descriptor.doLogRequestInReplayLog(request);
        }

        try {
            super.doPost(request, response);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.