org.apache.wicket.request.resource.caching
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final IResourceCachingStrategy INSTANCE
- Global instance of
NoOpResourceCachingStrategy
strategy
NoOpResourceCachingStrategy
public NoOpResourceCachingStrategy()
decorateUrl
public void decorateUrl(ResourceUrl url,
IStaticCacheableResource resource)
- Description copied from interface:
IResourceCachingStrategy
- add caching related information to filename + parameters
- Specified by:
decorateUrl
in interface IResourceCachingStrategy
- 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 what
IResourceCachingStrategy.decorateUrl(ResourceUrl, IStaticCacheableResource)
did.
- Specified by:
undecorateUrl
in interface IResourceCachingStrategy
- 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 interface IResourceCachingStrategy
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.