Module org.apache.wicket.core
Class NoOpResourceCachingStrategy
java.lang.Object
org.apache.wicket.request.resource.caching.NoOpResourceCachingStrategy
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic final IResourceCachingStrategy
Global instance ofNoOpResourceCachingStrategy
strategyFields inherited from interface org.apache.wicket.request.resource.caching.IResourceCachingStrategy
URL_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
INSTANCE
Global instance ofNoOpResourceCachingStrategy
strategy
-
-
Constructor Details
-
NoOpResourceCachingStrategy
public NoOpResourceCachingStrategy()
-
-
Method Details
-
decorateUrl
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
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
Description copied from interface:IResourceCachingStrategy
Clears any stateful information- Specified by:
clearCache
in interfaceIResourceCachingStrategy
-