Package org.apache.catalina.webresources
Class MyCacheStrategy
- java.lang.Object
-
- org.apache.catalina.webresources.MyCacheStrategy
-
- All Implemented Interfaces:
WebResourceRoot.CacheStrategy
public class MyCacheStrategy extends Object implements WebResourceRoot.CacheStrategy
-
-
Constructor Summary
Constructors Constructor Description MyCacheStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
noCache(String path)
Should the result of looking up the resource at the given path be excluded from caching?
-
-
-
Method Detail
-
noCache
public boolean noCache(String path)
Description copied from interface:WebResourceRoot.CacheStrategy
Should the result of looking up the resource at the given path be excluded from caching?- Specified by:
noCache
in interfaceWebResourceRoot.CacheStrategy
- Parameters:
path
- The path to check against the strategy to see if the result should be cached- Returns:
true
if the result should not be cached, otherwisefalse
-
-