Servlet action
Content
[
Hide
]
IPluginServletAction
Uses
The plugin is used for servlet-related delivery of own content.
Method signatures
The plug-in interface IPluginServletAction references all methods provided by the Base interface IFCPlugin
and additionally the following plugin-specific method signatures:
IPluginServletActionRetVal execute(IPluginServletActionParams params) throws FCPluginException
Transfer values.
The IPluginServletActionParams type provides the following properties:
If the plugin is processed incorrectly, an FCPluginException is thrown.
- getRequestParameters(): a map with the currently passed request parameters (without uploads).
- getUploadFiles(): a map with all uploaded files from the request
- getHeaderMap(): a map with the header information from the request
- getUser(): the user currently referenced in the session
- getSessionAttributeMap(): the parameters currently present in the session
- getLocale(): information about the currently set language and region
- getFrontend-Server(): reference to the frontend server, if servlet plugin was called via frontend server
- getAction(): type of servlet call
Response type | Description |
---|---|
HTML | The passed Response string is interpreted as finished HTML and delivered to the browser. |
SHOW_FILE | The passed data (binary data and Response string) is delivered as a file download to the browser, where the content of the Response string is interpreted as a file name. |
TEMPLATE | A new HTML document is created and the passed Response string is taken as the content of the body element. |
TEMPLATE_SYSTEM | Currently identical to TEMPLATE. |
REFIT | The passed Response string is interpreted as a URL and a redirect is performed. |