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
Modifier and TypeFieldDescriptionprotected CacheAccessManager
The cache access component.protected SourceResolver
The source resolver.protected ResourceAccessComponent
The resource access monitoring componentFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CacheAccessManager
Get the cache access managerprotected ResourceAccessComponent
Get 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
service
Methods 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.
-