Package org.ametys.web.resources
Class FrontCacheableResourceExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<FrontCacheableResource>
-
- org.ametys.web.resources.FrontCacheableResourceExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<FrontCacheableResource>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class FrontCacheableResourceExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<FrontCacheableResource>
Extension point that provides cacheable information for http headers on front resources
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
avalon role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description FrontCacheableResourceExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCacheable(String uri)
Test if the resource should be cached-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, initializeExtensions, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
FrontCacheableResourceExtensionPoint
public FrontCacheableResourceExtensionPoint()
-
-
Method Detail
-
isCacheable
public boolean isCacheable(String uri)
Test if the resource should be cached- Parameters:
uri
- The uri of the resource- Returns:
- True if the front resource should be cached
-
-