public class CssPackageResource extends PackageResource
PackageResource.PackageResourceBlockedException
AbstractResource.ContentRangeType, AbstractResource.ResourceResponse, AbstractResource.WriteCallback
IResource.Attributes
CONTENT_DISPOSITION_HEADER_NAME, CONTENT_RANGE_ENDBYTE, CONTENT_RANGE_STARTBYTE, INTERNAL_HEADERS
Constructor and Description |
---|
CssPackageResource(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected ICssCompressor |
getCompressor()
Gets the
ICssCompressor to be used. |
accept, compressResponse, equals, exists, exists, getCacheKey, getCompress, getName, getProcessingEncoding, getResourceStream, getScope, getStyle, getTextEncoding, hashCode, isCachingEnabled, newResourceResponse, processResponse, readBuffered, setCachingEnabled, setCompress, setTextEncoding, toString
configureCache, getCachingStrategy, respond, setRequestMetaData, setRequestRangeMetaData, setResponseContentRangeHeaderFields, setResponseHeaders
public CssPackageResource(Class<?> scope, String name, Locale locale, String style, String variation)
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)protected ICssCompressor getCompressor()
ICssCompressor
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.getCompressor
in class PackageResource
null
.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.