public class CssUrlReplacer extends Object implements IScopeAwareTextResourceProcessor, ICssCompressor
this.getResourceSettings().setCssCompressor(new CssUrlReplacer());
| Modifier and Type | Field and Description |
|---|---|
static String |
EMBED_BASE64
Used to be append to CSS URLs (background-image: url('Beer.gif?embedBase64');).
|
| Constructor and Description |
|---|
CssUrlReplacer()
Creates a css url replacer
|
CssUrlReplacer(Collection<String> excludes)
Creates a css url replacer
|
| Modifier and Type | Method and Description |
|---|---|
String |
compress(String original)
Remove comments and white spaces from the text resource
|
Collection<String> |
getExcludes()
Gets excluded css file names
|
String |
process(String input,
Class<?> scope,
String name)
Replaces the URLs of CSS resources with Wicket representatives.
|
void |
setExcludes(Collection<String> excludes)
Sets a list of css file names to be excluded
|
public static final String EMBED_BASE64
public CssUrlReplacer()
public CssUrlReplacer(Collection<String> excludes)
excludes - css file names to be excludedpublic String process(String input, Class<?> scope, String name)
process in interface IScopeAwareTextResourceProcessorinput - The original input to processscope - The scope class of the package resourcename - The name of the package resourcepublic String compress(String original)
ITextResourceCompressorcompress in interface ITextResourceCompressorpublic Collection<String> getExcludes()
public void setExcludes(Collection<String> excludes)
excludes - a list with css file names to be excludedCopyright © 2006–2021 Apache Software Foundation. All rights reserved.