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.ContentRangeType, AbstractResource.ResourceResponse, AbstractResource.WriteCallbackIResource.AttributesCONTENT_DISPOSITION_HEADER_NAME, CONTENT_RANGE_ENDBYTE, CONTENT_RANGE_STARTBYTE, INTERNAL_HEADERS| Constructor and Description |
|---|
ConcatBundleResource(List<? extends IReferenceHeaderItem> providedResources)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
findContentType(List<IResourceStream> resources) |
protected Time |
findLastModified(List<IResourceStream> resources) |
Serializable |
getCacheKey()
get unique caching key for the resource stream produced by
IStaticCacheableResource.getResourceStream() |
ITextResourceCompressor |
getCompressor() |
IResourceStream |
getResourceStream()
get static resource stream which will be unique to the related caching key
IStaticCacheableResource.getCacheKey() |
protected boolean |
getThrowExceptionOnMissingResource() |
boolean |
isCachingEnabled()
controls whether caching of the resource is enabled or disabled
|
protected AbstractResource.ResourceResponse |
newResourceResponse(IResource.Attributes attributes)
Override this method to return a
AbstractResource.ResourceResponse for the request. |
protected byte[] |
readAllResources(List<IResourceStream> resources) |
void |
setCachingEnabled(boolean enabled) |
void |
setCompressor(ITextResourceCompressor compressor) |
configureCache, getCachingStrategy, respond, setRequestMetaData, setRequestRangeMetaData, setResponseContentRangeHeaderFields, 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.getResourceStream()getCacheKey in interface IStaticCacheableResource#equals(Object) and
#hashCode()public IResourceStream getResourceStream()
IStaticCacheableResourceIStaticCacheableResource.getCacheKey()getResourceStream in interface IStaticCacheableResourcenull if no stream could be foundpublic void setCompressor(ITextResourceCompressor compressor)
public ITextResourceCompressor getCompressor()
protected boolean getThrowExceptionOnMissingResource()
ResourceSettings.getThrowExceptionOnMissingResource()Copyright © 2006–2021 Apache Software Foundation. All rights reserved.