public class JavaScriptPackageResource 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 |
---|
JavaScriptPackageResource(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected IJavaScriptCompressor |
getCompressor()
Gets the
IJavaScriptCompressor 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 JavaScriptPackageResource(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 IJavaScriptCompressor getCompressor()
IJavaScriptCompressor
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.getCompressor
in class PackageResource
null
.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.