Package org.ametys.web.resources
Class ConfigurableFrontCacheableResource
- java.lang.Object
-
- org.ametys.web.resources.ConfigurableFrontCacheableResource
-
- All Implemented Interfaces:
FrontCacheableResource
,Configurable
public class ConfigurableFrontCacheableResource extends Object implements FrontCacheableResource, Configurable
Configurable default implementation ofFrontCacheableResource
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>
_notCacheableExtensions
-
Constructor Summary
Constructors Constructor Description ConfigurableFrontCacheableResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
boolean
isNotCacheable(String uri)
Test if a resource should not be cached
-
-
-
Field Detail
-
_notCacheableExtensions
private List<String> _notCacheableExtensions
-
-
Constructor Detail
-
ConfigurableFrontCacheableResource
public ConfigurableFrontCacheableResource()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
isNotCacheable
public boolean isNotCacheable(String uri)
Description copied from interface:FrontCacheableResource
Test if a resource should not be cached- Specified by:
isNotCacheable
in interfaceFrontCacheableResource
- Parameters:
uri
- The uri- Returns:
- True if the resource should not be cached
-
-