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 String
NAME
The unique name of this plugin.static String
PARAM_ATTACHMENT_ID
The 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 IPluginServletActionRetVal
execute(IPluginServletActionParams params)
The main method of this plugin.String
getDisplayName(Locale locale)
String
getName()
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:IFCPlugin
Getter for the name of this plugin. This name may appear on the user interface.- Specified by:
getName
in interfaceIFCPlugin
- Specified by:
getName
in interfaceINameProviding
- Returns:
String
The name of this plugin.
-
getDisplayName
public String getDisplayName(Locale locale)
- Specified by:
getDisplayName
in interfaceIFCPlugin
- Specified by:
getDisplayName
in 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:IPluginServletAction
The main method of this plugin.When any exception other than
FCPluginException
is thrown, a generic HTML error page is returned to the client.- Specified by:
execute
in interfaceIPluginServletAction
- Parameters:
params
- The parameters this plugin may make use of. Contains for example the URL parameters, the data of theHttpSession
or 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, a404
HTTP response is returned to the client.
-
-