public class CssUrlRewritingResourcePreProcessor extends StringResourcePreProcessor
Replaces relative paths in CSS files to full path urls.
When you add multiple CSS files of which the source location differs, the path of the CSS file will refer to the wrong background images (for example). This preprocessor replaces the relative paths in CSS files by their equivalent absolute url.
See the CSS url spec at http://www.w3.org/TR/CSS21/syndata.html#uri
The format of a URI value is 'url(' followed by optional white space followed by an optional single quote (') or double quote ( ") character followed by the URI itself, followed by an optional single quote (') or double quote (" ) character followed by optional white space followed by ')'. The two quote characters must be the same.
| Constructor and Description |
|---|
CssUrlRewritingResourcePreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
preProcess(ResourceSpec resourceSpec,
String string) |
preProcessprotected String preProcess(ResourceSpec resourceSpec, String string)
preProcess in class StringResourcePreProcessorCopyright © 2017 Molindo GmbH. All Rights Reserved.