private void handleGeneratedCssInDebugMode ( String requestedPath , HttpServletRequest request , HttpServletResponse response , BinaryResourcesHandler binaryRsHandler ) throws ResourceNotFoundException , IOException { // Retrieves the content of the CSS Reader rd = rsReaderHandler . getResource ( null , requestedPath ) ; if ( rd == null ) { throw new ResourceNotFoundException ( requestedPath ) ; } String content = IOUtils . toString ( rd ) ; String requestPath = getRequestPath ( request ) ; // Rewrite the generated binary resources String result = CssDebugUrlRewriter . rewriteGeneratedBinaryResourceDebugUrl ( requestPath , content , binaryRsHandler . getConfig ( ) . getServletMapping ( ) ) ; Writer out = response . getWriter ( ) ; out . write ( result ) ; }
Handle the generated CSS content in debug mode .