Package org.ametys.plugins.forms.actions
Class SetFormHeaderAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.forms.actions.SetFormHeaderAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Sets the Content-Disposition header as attachment and injects the form title as the attachment filename.
-
Field Summary
Modifier and TypeFieldDescriptionprotected I18nUtils
I18n Utilsprotected AmetysObjectResolver
The ametys object resolver.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 TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_resolver
The ametys object resolver. -
_i18nUtils
I18n Utils
-
-
Constructor Details
-
SetFormHeaderAction
public SetFormHeaderAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-