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)
IResourceCachingStrategy
decorateUrl
in interface IResourceCachingStrategy
url
- 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)
IResourceCachingStrategy
IResourceCachingStrategy.decorateUrl(ResourceUrl, IStaticCacheableResource)
did.undecorateUrl
in interface IResourceCachingStrategy
url
- 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)
IResourceCachingStrategy
decorateResponse
in interface IResourceCachingStrategy
public void clearCache()
IResourceCachingStrategy
clearCache
in interface IResourceCachingStrategy
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.