Package org.ametys.site
Class InvalidatePageAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.site.InvalidatePageAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
- Direct Known Subclasses:
InvalidateImagesAction
,InvalidateSharedResourcesAction
Invalidates cached data for a given site.
-
Field Summary
Fields 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 manageract
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) protected void
invalidatePage
(File root, String decodedPath) Invalidate page to given pathMethods 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
-
_logger
The logger
-
-
Constructor Details
-
InvalidatePageAction
public InvalidatePageAction()
-
-
Method Details
-
_getCacheAccessManager
Get the cache access manager- Returns:
- the CacheAccessManager
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception -
invalidatePage
Invalidate page to given path- Parameters:
root
- the root cache folderdecodedPath
- the resource path- Throws:
IOException
- if an error occured
-