Class CssUrlReplacer

java.lang.Object
org.apache.wicket.resource.CssUrlReplacer
All Implemented Interfaces:
ICssCompressor, IScopeAwareTextResourceProcessor, ITextResourceCompressor

This compressor is used to replace URLs within CSS files with URLs created from PackageResourceReferences that belongs to their corresponding resources (e.g images).The scope of the CSS file is used to create the PackageResourceReferences. The compress method is not compressing any content, but replacing the URLs with Wicket representatives.

Usage:
 this.getResourceSettings().setCssCompressor(new CssUrlReplacer());
 
Since:
6.20.0
Author:
Tobias Soloschenko
  • Field Details

    • EMBED_BASE64

      public static final String EMBED_BASE64
      Used to be append to CSS URLs (background-image: url('Beer.gif?embedBase64');). The CssUrlReplacer embeds the base64 content instead of using an URL.
      See Also:
  • Constructor Details

  • Method Details