Class SRSCompressedCachingInterceptor
java.lang.Object
org.apache.tapestry5.internal.services.assets.DelegatingSRS
org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor
org.apache.tapestry5.internal.services.assets.SRSCompressedCachingInterceptor
- All Implemented Interfaces:
StreamableResourceSource
Specialization of
SRSCachingInterceptor
that only attempts to cache
compressed resources.-
Field Summary
Fields inherited from class org.apache.tapestry5.internal.services.assets.DelegatingSRS
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionSRSCompressedCachingInterceptor
(StreamableResourceSource delegate, ResourceChangeTracker tracker) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor
getStreamableResource
Methods inherited from class org.apache.tapestry5.internal.services.assets.DelegatingSRS
fileExtensionsForContentType
-
Constructor Details
-
SRSCompressedCachingInterceptor
public SRSCompressedCachingInterceptor(StreamableResourceSource delegate, ResourceChangeTracker tracker)
-
-
Method Details
-
isCacheable
Return true only if the resource is compressed.- Overrides:
isCacheable
in classSRSCachingInterceptor
- Returns:
- true to cache the resource
-
enableCache
Returns true just when the processing enables compression.- Overrides:
enableCache
in classSRSCachingInterceptor
-