public class NoOpResourceCachingStrategy extends Object implements IResourceCachingStrategy
| Modifier and Type | Field and Description |
|---|---|
static IResourceCachingStrategy |
INSTANCE
Global instance of
NoOpResourceCachingStrategy strategy |
URL_VERSION| Constructor and Description |
|---|
NoOpResourceCachingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears any stateful information
|
void |
decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource)
decorate resource response
|
void |
decorateUrl(ResourceUrl url,
IStaticCacheableResource resource)
add caching related information to filename + parameters
|
void |
undecorateUrl(ResourceUrl url)
Removes caching related information from filename + parameters.
|
public static final IResourceCachingStrategy INSTANCE
NoOpResourceCachingStrategy strategypublic void decorateUrl(ResourceUrl url, IStaticCacheableResource resource)
IResourceCachingStrategydecorateUrl in interface IResourceCachingStrategyurl - parameters to which caching information should be added and which will be used to
construct the url to the resourceresource - cacheable resourcepublic void undecorateUrl(ResourceUrl url)
IResourceCachingStrategyIResourceCachingStrategy.decorateUrl(ResourceUrl, IStaticCacheableResource)
did.undecorateUrl in interface IResourceCachingStrategyurl - parameters that were used to construct the url to the resource and from which
previously added caching information should be strippedpublic void decorateResponse(AbstractResource.ResourceResponse response, IStaticCacheableResource resource)
IResourceCachingStrategydecorateResponse in interface IResourceCachingStrategypublic void clearCache()
IResourceCachingStrategyclearCache in interface IResourceCachingStrategyCopyright © 2006–2021 Apache Software Foundation. All rights reserved.