public class SRSCompressedCachingInterceptor extends SRSCachingInterceptor
SRSCachingInterceptor
that only attempts to cache
compressed resources.delegate
Constructor and Description |
---|
SRSCompressedCachingInterceptor(StreamableResourceSource delegate,
ResourceChangeTracker tracker) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
enableCache(StreamableResourceProcessing processing)
Returns true just when the processing enables compression.
|
protected boolean |
isCacheable(StreamableResource resource)
Return true only if the resource is compressed.
|
getStreamableResource
fileExtensionsForContentType
public SRSCompressedCachingInterceptor(StreamableResourceSource delegate, ResourceChangeTracker tracker)
protected boolean isCacheable(StreamableResource resource)
isCacheable
in class SRSCachingInterceptor
protected boolean enableCache(StreamableResourceProcessing processing)
enableCache
in class SRSCachingInterceptor
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.