Module org.apache.wicket.core
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
Package resource for javascript files.
- 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
Modifier and TypeMethodDescriptionprotected IJavaScriptCompressor
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 Details
-
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 Details
-
getCompressor
Gets theIJavaScriptCompressor
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 JavaScript compressor. May be
null
.
-