Package org.ametys.web.resources
Class FrontCacheableResourceHeaderAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.AbstractConfigurableAction
-
- org.ametys.web.resources.FrontCacheableResourceHeaderAction
-
- All Implemented Interfaces:
Component
,Configurable
,LogEnabled
,Serviceable
,ThreadSafe
,Action
public class FrontCacheableResourceHeaderAction extends AbstractConfigurableAction implements ThreadSafe, Serviceable
This action adds cacheable HTTP headers to front resources. Some resources are ignored based on theFrontCacheableResourceExtensionPoint
-
-
Field Summary
Fields Modifier and Type Field Description private FrontCacheableResourceExtensionPoint
_frontCacheableResourceEP
-
Fields inherited from class org.apache.cocoon.acting.AbstractConfigurableAction
settings
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description FrontCacheableResourceHeaderAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager manager)
private Map
setCacheableHeaders(Map objectModel)
-
Methods inherited from class org.apache.cocoon.acting.AbstractConfigurableAction
configure
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_frontCacheableResourceEP
private FrontCacheableResourceExtensionPoint _frontCacheableResourceEP
-
-
Constructor Detail
-
FrontCacheableResourceHeaderAction
public FrontCacheableResourceHeaderAction()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
setCacheableHeaders
private Map setCacheableHeaders(Map objectModel)
-
-