Package org.ametys.site
Class IsPageCacheableAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.site.IsPageCacheableAction
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,ThreadSafe,Action
Blocks until the cacheable status is known.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CacheAccessManagerThe cache access component.protected SourceResolverThe source resolver.protected ResourceAccessComponentThe resource access monitoring componentFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CacheAccessManagerGet the cache access managerprotected ResourceAccessComponentGet the resource access componentprotected boolean_resourceExists(SourceResolver resolver, String resourceURI) Tests if the resource exists.act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) Methods inherited from class org.apache.cocoon.acting.ServiceableAction
serviceMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_cacheAccess
The cache access component. -
_resourceAccessComponent
The resource access monitoring component -
_resolver
The source resolver.
-
-
Constructor Details
-
IsPageCacheableAction
public IsPageCacheableAction()
-
-
Method Details
-
_getCacheAccessManager
Get the cache access manager- Returns:
- the CacheAccessManager
-
_getResourceAccessComponent
Get the resource access component- Returns:
- the ResourceAccessComponent
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception -
_resourceExists
Tests if the resource exists.- Parameters:
resolver- the resolver.resourceURI- the resource uri.- Returns:
- true if the resource exists, false otherwise.
-