org.apache.wicket.request.resource
Class CssPackageResource
java.lang.Object
org.apache.wicket.request.resource.AbstractResource
org.apache.wicket.request.resource.PackageResource
org.apache.wicket.request.resource.CssPackageResource
- All Implemented Interfaces:
- java.io.Serializable, IClusterable, IStaticCacheableResource, IResource
public class CssPackageResource
- extends PackageResource
Package resource for css files. It strips comments and whitespace from css.
- See Also:
- Serialized Form
Constructor Summary |
CssPackageResource(java.lang.Class<?> scope,
java.lang.String name,
java.util.Locale locale,
java.lang.String style,
java.lang.String variation)
Construct. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.wicket.request.resource.IResource |
respond |
CssPackageResource
public CssPackageResource(java.lang.Class<?> scope,
java.lang.String name,
java.util.Locale locale,
java.lang.String style,
java.lang.String variation)
- Construct.
- Parameters:
scope
- name
- locale
- style
- variation
-
processResponse
protected byte[] processResponse(IResource.Attributes attributes,
byte[] bytes)
- Description copied from class:
PackageResource
- Gives a chance to modify the resource going to be written in the response
- Overrides:
processResponse
in class PackageResource
- Parameters:
attributes
- current request attributes from clientbytes
- the original response
- Returns:
- the processed response
getCompressor
protected ICssCompressor getCompressor()
- Gets the
ICssCompressor
to be used. By default returns the configured compressor on
application level, but can be overriden by the user application to provide compressor
specific to the resource.
- Returns:
- the configured application level Css compressor. May be
null
.
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.