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
public class IsPageCacheableAction extends ServiceableAction implements ThreadSafe
Blocks until the cacheable status is known.
-
-
Field Summary
Fields Modifier and Type Field Description protected CacheAccessManager
_cacheAccess
The cache access component.protected SourceResolver
_resolver
The source resolver.protected ResourceAccessComponent
_resourceAccessComponent
The resource access monitoring component-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description IsPageCacheableAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CacheAccessManager
_getCacheAccessManager()
Get the cache access managerprotected ResourceAccessComponent
_getResourceAccessComponent()
Get the resource access componentprotected boolean
_resourceExists(SourceResolver resolver, String resourceURI)
Tests if the resource exists.Map
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 Detail
-
_cacheAccess
protected CacheAccessManager _cacheAccess
The cache access component.
-
_resourceAccessComponent
protected ResourceAccessComponent _resourceAccessComponent
The resource access monitoring component
-
_resolver
protected SourceResolver _resolver
The source resolver.
-
-
Constructor Detail
-
IsPageCacheableAction
public IsPageCacheableAction()
-
-
Method Detail
-
_getCacheAccessManager
protected CacheAccessManager _getCacheAccessManager()
Get the cache access manager- Returns:
- the CacheAccessManager
-
_getResourceAccessComponent
protected ResourceAccessComponent _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
protected boolean _resourceExists(SourceResolver resolver, String resourceURI)
Tests if the resource exists.- Parameters:
resolver
- the resolver.resourceURI
- the resource uri.- Returns:
- true if the resource exists, false otherwise.
-
-