Class JavaScriptPackageResource
- java.lang.Object
-
- org.apache.wicket.request.resource.AbstractResource
-
- org.apache.wicket.request.resource.PackageResource
-
- org.apache.wicket.request.resource.JavaScriptPackageResource
-
- All Implemented Interfaces:
Serializable
,IStaticCacheableResource
,IResource
,IClusterable
public class JavaScriptPackageResource extends PackageResource
Package resource for javascript files.- See Also:
- Serialized Form
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IJavaScriptCompressor
getCompressor()
Gets theIJavaScriptCompressor
to be used.-
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 Detail
-
JavaScriptPackageResource
public JavaScriptPackageResource(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 Detail
-
getCompressor
protected IJavaScriptCompressor getCompressor()
Gets theIJavaScriptCompressor
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.- Overrides:
getCompressor
in classPackageResource
- Returns:
- the configured application level JavaScript compressor. May be
null
.
-
-