protected String rewriteUrl ( GeneratorContext context , String content ) throws IOException { JawrConfig jawrConfig = context . getConfig ( ) ; CssImageUrlRewriter rewriter = new CssImageUrlRewriter ( jawrConfig ) ; String bundlePath = PathNormalizer . joinPaths ( jawrConfig . getServletMapping ( ) , ResourceGenerator . CSS_DEBUGPATH ) ; StringBuffer result = rewriter . rewriteUrl ( context . getPath ( ) , bundlePath , content ) ; return result . toString ( ) ; }
Rewrite the URL for debug mode