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 inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isCacheable
(String uri) Test if the resource should be cachedMethods 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
-
Field Details
-
ROLE
avalon role
-
-
Constructor Details
-
FrontCacheableResourceExtensionPoint
public FrontCacheableResourceExtensionPoint()
-
-
Method Details
-
isCacheable
Test if the resource should be cached- Parameters:
uri
- The uri of the resource- Returns:
- True if the front resource should be cached
-