Package org.jruby.rack.servlet

Examples of org.jruby.rack.servlet.ResponseCapture


       
        HttpServletRequest httpRequest = (HttpServletRequest) request;
        HttpServletResponse httpResponse = (HttpServletResponse) response;
       
        RequestCapture requestCapture = wrapRequest(httpRequest);
        ResponseCapture responseCapture = wrapResponse(httpResponse);
       
        RackEnvironment env = new ServletRackEnvironment(httpRequest, httpResponse, getContext());
        // NOTE: should be moved bellow, just before getDispatcher().process(...)
        RackResponseEnvironment responseEnv = new ServletRackResponseEnvironment(httpResponse);
View Full Code Here


     * Extension point if you'll need to customize {@link ResponseCapture}
     * @param response
     * @return response capture
     */
    protected ResponseCapture wrapResponse(ServletResponse response) {
        return new ResponseCapture((HttpServletResponse) response);
    }
View Full Code Here

        return false;
    }

    @Override
    protected ResponseCapture wrapResponse(ServletResponse response) {
        final ResponseCapture capture = super.wrapResponse(response);
        capture.setNotHandledStatuses( getResponseNotHandledStatuses() );
        return capture;
    }
View Full Code Here

TOP

Related Classes of org.jruby.rack.servlet.ResponseCapture

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.