org.apache.wicket.request.resource
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, IClusterable, IStaticCacheableResource, IResource
public class JavaScriptPackageResource
- extends PackageResource
Package resource for javascript files. It strips comments and whitespace from javascript.
- See Also:
- Serialized Form
Methods inherited from interface org.apache.wicket.request.resource.IResource |
respond |
JavaScriptPackageResource
public JavaScriptPackageResource(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
- Construct.
- Parameters:
scope
- name
- locale
- style
- variation
-
processResponse
protected byte[] processResponse(IResource.Attributes attributes,
byte[] bytes)
- Description copied from class:
PackageResource
- Gives a chance to modify the resource going to be written in the response
- Overrides:
processResponse
in class PackageResource
- Parameters:
attributes
- current request attributes from clientbytes
- the original response
- Returns:
- the processed response
getCompressor
protected IJavaScriptCompressor getCompressor()
- Gets the
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.
- Returns:
- the configured application level JavaScript compressor. May be
null
.
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.