org.apache.wicket.resource.bundles
Class ConcatBundleResource
java.lang.Object
org.apache.wicket.request.resource.AbstractResource
org.apache.wicket.resource.bundles.ConcatBundleResource
- All Implemented Interfaces:
- Serializable, IStaticCacheableResource, IResource, IClusterable
public class ConcatBundleResource
- extends AbstractResource
- implements IStaticCacheableResource
A resource that concatenates several resources into one download. This
resource can only bundle PackageResource
s. The content type of the resource will be that
of the first resource that specifies its content type.
- Author:
- papegaaij
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wicket.request.resource.IResource |
respond |
ConcatBundleResource
public ConcatBundleResource(List<? extends IReferenceHeaderItem> providedResources)
- Construct.
- Parameters:
providedResources
-
newResourceResponse
protected AbstractResource.ResourceResponse newResourceResponse(IResource.Attributes attributes)
- Description copied from class:
AbstractResource
- Override this method to return a
AbstractResource.ResourceResponse
for the request.
- Specified by:
newResourceResponse
in class AbstractResource
- Parameters:
attributes
- request attributes
- Returns:
- resource data instance
getCacheKey
public Serializable getCacheKey()
- Description copied from interface:
IStaticCacheableResource
- get unique caching key for the resource stream produced by
IStaticCacheableResource.getCacheableResourceStream()
- Specified by:
getCacheKey
in interface IStaticCacheableResource
- Returns:
- serializable key with properly supports
#equals(Object)
and
#hashCode()
getCacheableResourceStream
public IResourceStream getCacheableResourceStream()
- Description copied from interface:
IStaticCacheableResource
- get static resource stream which will be unique to the related caching key
IStaticCacheableResource.getCacheKey()
- Specified by:
getCacheableResourceStream
in interface IStaticCacheableResource
- Returns:
- stream or
null
if no stream could be found
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.