java.lang.Object
org.apache.wicket.request.resource.AbstractResource
org.apache.wicket.request.resource.PackageResource
org.apache.wicket.request.resource.CssPackageResource
- All Implemented Interfaces:
Serializable
,IStaticCacheableResource
,IResource
,IClusterable
Package resource for css files. It strips comments and whitespace from css.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.PackageResource
PackageResource.PackageResourceBlockedException
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.AbstractResource
AbstractResource.ContentRangeType, AbstractResource.ResourceResponse, AbstractResource.WriteCallback
Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource
IResource.Attributes
-
Field Summary
Fields inherited from class org.apache.wicket.request.resource.AbstractResource
CONTENT_DISPOSITION_HEADER_NAME, CONTENT_RANGE_ENDBYTE, CONTENT_RANGE_STARTBYTE, INTERNAL_HEADERS
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.wicket.request.resource.PackageResource
accept, compressResponse, equals, exists, exists, getCacheKey, getCompress, getName, getProcessingEncoding, getResourceStream, getScope, getStyle, getTextEncoding, hashCode, isCachingEnabled, newResourceResponse, processResponse, readBuffered, setCachingEnabled, setCompress, setTextEncoding, toString
Methods inherited from class org.apache.wicket.request.resource.AbstractResource
configureCache, getCachingStrategy, respond, setRequestMetaData, setRequestRangeMetaData, setResponseContentRangeHeaderFields, setResponseHeaders
-
Constructor Details
-
CssPackageResource
public CssPackageResource(Class<?> scope, String name, Locale locale, String style, String variation) Construct.- Parameters:
scope
- This argument will be used to get the class loader for loading the package resource, and to determine what package it is inname
- The relative path to the resourcelocale
- The locale of the resourcestyle
- The style of the resourcevariation
- The component's variation (of the style)
-
-
Method Details
-
getCompressor
Gets theICssCompressor
to be used. By default returns the configured compressor on application level, but can be overridden by the user application to provide compressor specific to the resource.- Overrides:
getCompressor
in classPackageResource
- Returns:
- the configured application level Css compressor. May be
null
.
-