public class ConcatBundleResource extends AbstractResource implements IStaticCacheableResource
IStaticCacheableResources. The content type of the resource will
be that of the first resource that specifies its content type.AbstractResource.ResourceResponse, AbstractResource.WriteCallbackIResource.AttributesINTERNAL_HEADERS| Constructor and Description |
|---|
ConcatBundleResource(List<? extends IReferenceHeaderItem> providedResources)
Construct.
|
configureCache, getCachingStrategy, respond, setResponseHeaderspublic ConcatBundleResource(List<? extends IReferenceHeaderItem> providedResources)
providedResources - protected AbstractResource.ResourceResponse newResourceResponse(IResource.Attributes attributes)
AbstractResourceAbstractResource.ResourceResponse for the request.newResourceResponse in class AbstractResourceattributes - request attributesprotected String findContentType(List<IResourceStream> resources)
protected Time findLastModified(List<IResourceStream> resources)
protected byte[] readAllResources(List<IResourceStream> resources) throws IOException, ResourceStreamNotFoundException
public boolean isCachingEnabled()
IStaticCacheableResourceisCachingEnabled in interface IStaticCacheableResourcepublic void setCachingEnabled(boolean enabled)
public Serializable getCacheKey()
IStaticCacheableResourceIStaticCacheableResource.getCacheableResourceStream()getCacheKey in interface IStaticCacheableResource#equals(Object) and
#hashCode()public IResourceStream getCacheableResourceStream()
IStaticCacheableResourceIStaticCacheableResource.getCacheKey()getCacheableResourceStream in interface IStaticCacheableResourcenull if no stream could be foundpublic void setCompressor(ITextResourceCompressor compressor)
public ITextResourceCompressor getCompressor()
protected boolean getThrowExceptionOnMissingResource()
org.apache.wicket.settings.IResourceSettings#getThrowExceptionOnMissingResource()Copyright © 2006–2014 Apache Software Foundation. All rights reserved.