Class FormRecordAttachmentServletPlugin
- java.lang.Object
-
- de.xima.fc.e2e.containerplugin.plugin.FormRecordAttachmentServletPlugin
-
- All Implemented Interfaces:
INameProviding,ITransferable,INamedUiElement,IFCPlugin,IPluginServletAction,Serializable
public class FormRecordAttachmentServletPlugin extends Object implements IPluginServletAction
Simple servlet for downloading a form record attachment, meant for integration tests.- Since:
- 7.0.15
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEThe unique name of this plugin.static StringPARAM_ATTACHMENT_IDThe name of the query parameter for the attachment .-
Fields inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
CONFIG_FILENAME
-
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
-
Constructor Summary
Constructors Constructor Description FormRecordAttachmentServletPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPluginServletActionRetValexecute(IPluginServletActionParams params)The main method of this plugin.StringgetDisplayName(Locale locale)StringgetName()Getter for the name of this plugin.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
getDescription, getDescription, initialize, initPlugin, install, shutdown, shutdown, uninstall
-
-
-
-
Field Detail
-
NAME
public static final String NAME
The unique name of this plugin.- See Also:
- Constant Field Values
-
PARAM_ATTACHMENT_ID
public static final String PARAM_ATTACHMENT_ID
The name of the query parameter for the attachment .- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IFCPluginGetter for the name of this plugin. This name may appear on the user interface.- Specified by:
getNamein interfaceIFCPlugin- Specified by:
getNamein interfaceINameProviding- Returns:
StringThe name of this plugin.
-
getDisplayName
public String getDisplayName(Locale locale)
- Specified by:
getDisplayNamein interfaceIFCPlugin- Specified by:
getDisplayNamein interfaceINamedUiElement- Returns:
- Wert, der das entsprechende Objekt an Oberfläche repräsentiert (wird i.A. zur Laufzeit ermittelt).
-
execute
public IPluginServletActionRetVal execute(IPluginServletActionParams params) throws FCPluginException
Description copied from interface:IPluginServletActionThe main method of this plugin.When any exception other than
FCPluginExceptionis thrown, a generic HTML error page is returned to the client.- Specified by:
executein interfaceIPluginServletAction- Parameters:
params- The parameters this plugin may make use of. Contains for example the URL parameters, the data of theHttpSessionor the currentBenutzer.- Returns:
- The HTTP response code and the data to be sent as the response.
- Throws:
FCPluginException- May be thrown when this plugin cannot handle the request. When this exception is thrown, a404HTTP response is returned to the client.
-
-