public class ConcatBundleResource extends AbstractResource implements IStaticCacheableResource
IStaticCacheableResource
s. The content type of the resource will
be that of the first resource that specifies its content type.AbstractResource.ContentRangeType, AbstractResource.ResourceResponse, AbstractResource.WriteCallback
IResource.Attributes
CONTENT_DISPOSITION_HEADER_NAME, CONTENT_RANGE_ENDBYTE, CONTENT_RANGE_STARTBYTE, INTERNAL_HEADERS
Constructor and Description |
---|
ConcatBundleResource(List<? extends IReferenceHeaderItem> providedResources)
Construct.
|
configureCache, getCachingStrategy, respond, setRequestMetaData, setRequestRangeMetaData, setResponseContentRangeHeaderFields, setResponseHeaders
public ConcatBundleResource(List<? extends IReferenceHeaderItem> providedResources)
providedResources
- protected AbstractResource.ResourceResponse newResourceResponse(IResource.Attributes attributes)
AbstractResource
AbstractResource.ResourceResponse
for the request.newResourceResponse
in class AbstractResource
attributes
- 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()
IStaticCacheableResource
isCachingEnabled
in interface IStaticCacheableResource
public void setCachingEnabled(boolean enabled)
public Serializable getCacheKey()
IStaticCacheableResource
IStaticCacheableResource.getResourceStream()
getCacheKey
in interface IStaticCacheableResource
#equals(Object)
and
#hashCode()
public IResourceStream getResourceStream()
IStaticCacheableResource
IStaticCacheableResource.getCacheKey()
getResourceStream
in interface IStaticCacheableResource
null
if no stream could be foundpublic void setCompressor(ITextResourceCompressor compressor)
public ITextResourceCompressor getCompressor()
protected boolean getThrowExceptionOnMissingResource()
ResourceSettings.getThrowExceptionOnMissingResource()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.