Class NoOpResourceCachingStrategy
- java.lang.Object
-
- org.apache.wicket.request.resource.caching.NoOpResourceCachingStrategy
-
- All Implemented Interfaces:
IResourceCachingStrategy
public class NoOpResourceCachingStrategy extends Object implements IResourceCachingStrategy
resource caching strategy that does nothing at all when using this strategy caching of resources will effectively be disabled- Since:
- 1.5
- Author:
- Peter Ertl
-
-
Field Summary
Fields Modifier and Type Field Description static IResourceCachingStrategy
INSTANCE
Global instance ofNoOpResourceCachingStrategy
strategy-
Fields inherited from interface org.apache.wicket.request.resource.caching.IResourceCachingStrategy
URL_VERSION
-
-
Constructor Summary
Constructors Constructor Description NoOpResourceCachingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
Clears any stateful informationvoid
decorateResponse(AbstractResource.ResourceResponse response, IStaticCacheableResource resource)
decorate resource responsevoid
decorateUrl(ResourceUrl url, IStaticCacheableResource resource)
add caching related information to filename + parametersvoid
undecorateUrl(ResourceUrl url)
Removes caching related information from filename + parameters.
-
-
-
Field Detail
-
INSTANCE
public static final IResourceCachingStrategy INSTANCE
Global instance ofNoOpResourceCachingStrategy
strategy
-
-
Constructor Detail
-
NoOpResourceCachingStrategy
public NoOpResourceCachingStrategy()
-
-
Method Detail
-
decorateUrl
public void decorateUrl(ResourceUrl url, IStaticCacheableResource resource)
Description copied from interface:IResourceCachingStrategy
add caching related information to filename + parameters- Specified by:
decorateUrl
in interfaceIResourceCachingStrategy
- Parameters:
url
- parameters to which caching information should be added and which will be used to construct the url to the resourceresource
- cacheable resource
-
undecorateUrl
public void undecorateUrl(ResourceUrl url)
Description copied from interface:IResourceCachingStrategy
Removes caching related information from filename + parameters. In essenese this method undoes whatIResourceCachingStrategy.decorateUrl(ResourceUrl, IStaticCacheableResource)
did.- Specified by:
undecorateUrl
in interfaceIResourceCachingStrategy
- Parameters:
url
- parameters that were used to construct the url to the resource and from which previously added caching information should be stripped
-
decorateResponse
public void decorateResponse(AbstractResource.ResourceResponse response, IStaticCacheableResource resource)
Description copied from interface:IResourceCachingStrategy
decorate resource response- Specified by:
decorateResponse
in interfaceIResourceCachingStrategy
-
clearCache
public void clearCache()
Description copied from interface:IResourceCachingStrategy
Clears any stateful information- Specified by:
clearCache
in interfaceIResourceCachingStrategy
-
-