Class NoOpResourceCachingStrategy
- java.lang.Object
-
- org.apache.wicket.request.resource.caching.NoOpResourceCachingStrategy
-
- All Implemented Interfaces:
IResourceCachingStrategy
public class NoOpResourceCachingStrategy extends java.lang.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 IResourceCachingStrategyINSTANCEGlobal instance ofNoOpResourceCachingStrategystrategy-
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 voidclearCache()Clears any stateful informationvoiddecorateResponse(AbstractResource.ResourceResponse response, IStaticCacheableResource resource)decorate resource responsevoiddecorateUrl(ResourceUrl url, IStaticCacheableResource resource)add caching related information to filename + parametersvoidundecorateUrl(ResourceUrl url)Removes caching related information from filename + parameters.
-
-
-
Field Detail
-
INSTANCE
public static final IResourceCachingStrategy INSTANCE
Global instance ofNoOpResourceCachingStrategystrategy
-
-
Method Detail
-
decorateUrl
public void decorateUrl(ResourceUrl url, IStaticCacheableResource resource)
Description copied from interface:IResourceCachingStrategyadd caching related information to filename + parameters- Specified by:
decorateUrlin 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:IResourceCachingStrategyRemoves caching related information from filename + parameters. In essenese this method undoes whatIResourceCachingStrategy.decorateUrl(ResourceUrl, IStaticCacheableResource)did.- Specified by:
undecorateUrlin 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:IResourceCachingStrategydecorate resource response- Specified by:
decorateResponsein interfaceIResourceCachingStrategy
-
clearCache
public void clearCache()
Description copied from interface:IResourceCachingStrategyClears any stateful information- Specified by:
clearCachein interfaceIResourceCachingStrategy
-
-