Class PluginServletActionParams
- java.lang.Object
-
- de.xima.fc.plugin.models.params.servlet.PluginServletActionParams
-
- All Implemented Interfaces:
IPluginParameters
,IPluginServletActionParams
,Serializable
public class PluginServletActionParams extends Object implements IPluginServletActionParams
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginServletActionParams(SessionAttributes sessionAttributes, HashMap<String,List<String>> valueParameter, HashMap<String,List<FileData>> uploadFiles, Locale locale, EServletAction action, Map<String,String> headerMap, FrontendServer fs)
Deprecated.use#PluginServletActionParams(Map, HashMap, HashMap, Benutzer, Locale, EServletAction, Map, FrontendServer)
PluginServletActionParams(Map<String,Serializable> sessionAttributes, Map<String,List<String>> valueParameter, Map<String,List<FileData>> uploadFiles, Benutzer benutzer, Locale locale, EServletAction action, Map<String,String> headerMap, FrontendServer fs)
Deprecated.PluginServletActionParams(Map<String,Serializable> sessionAttributes, Map<String,List<String>> valueParameter, Map<String,List<FileData>> uploadFiles, Benutzer benutzer, Locale locale, EServletAction action, Map<String,String> headerMap, FrontendServer fs, Mandant client, String sessionId)
Constuctor for creating a parameters object with all necessary request data
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EServletAction
getAction()
Benutzer
getBenutzer()
FrontendServer
getFrontendServer()
Map<String,String>
getHeaderMap()
Locale
getLocale()
Mandant
getPluginClient()
Map<String,List<String>>
getRequestParameters()
The parameters from the HTTP request.Map<String,Serializable>
getSessionAttributeMap()
Deprecated.SessionAttributes
getSessionAttributes()
Deprecated.String
getSessionID()
Map<String,List<FileData>>
getUploadFiles()
ValueParameters
getValueParameters()
Deprecated.
-
-
-
Constructor Detail
-
PluginServletActionParams
@Deprecated public PluginServletActionParams(SessionAttributes sessionAttributes, HashMap<String,List<String>> valueParameter, HashMap<String,List<FileData>> uploadFiles, Locale locale, EServletAction action, Map<String,String> headerMap, FrontendServer fs)
Deprecated.use#PluginServletActionParams(Map, HashMap, HashMap, Benutzer, Locale, EServletAction, Map, FrontendServer)
-
PluginServletActionParams
public PluginServletActionParams(Map<String,Serializable> sessionAttributes, Map<String,List<String>> valueParameter, Map<String,List<FileData>> uploadFiles, Benutzer benutzer, Locale locale, EServletAction action, Map<String,String> headerMap, FrontendServer fs, Mandant client, String sessionId)
Constuctor for creating a parameters object with all necessary request data- Parameters:
sessionAttributes
- attributes from the current sessionvalueParameter
- request parameteruploadFiles
- files that are overhanded by the requestbenutzer
- the current logged in user that sent the formlocale
- the currently set localaction
- an enumeration representing the HTTP method of the requestheaderMap
- request header fieldsfs
- theFrontendServer
that sent the request
-
PluginServletActionParams
@Deprecated public PluginServletActionParams(Map<String,Serializable> sessionAttributes, Map<String,List<String>> valueParameter, Map<String,List<FileData>> uploadFiles, Benutzer benutzer, Locale locale, EServletAction action, Map<String,String> headerMap, FrontendServer fs)
Deprecated.- Parameters:
sessionAttributes
- attributes from the current sessionvalueParameter
- request parameteruploadFiles
- files that are overhanded by the requestbenutzer
- the current logged in user that sent the formlocale
- the currently set localaction
- an enumeration representing the HTTP method of the requestheaderMap
- request header fieldsfs
- theFrontendServer
that sent the request
-
-
Method Detail
-
getSessionAttributeMap
@Deprecated public Map<String,Serializable> getSessionAttributeMap()
Deprecated.- Specified by:
getSessionAttributeMap
in interfaceIPluginServletActionParams
- Returns:
- A map
Map
with all attributes of the currentHttpSession
. Please note that changes to this map are not reflected or saved in theHttpSession
.
-
getRequestParameters
public Map<String,List<String>> getRequestParameters()
Description copied from interface:IPluginServletActionParams
The parameters from the HTTP request. This includes both URL parameters as well as POST parameters, but excluded uploaded files. Please note that multiple values may have been given for a URL or POST parameter, eg.http://example.com?foo=bar&foo=baz
. Also, for some HTTP methods such asEServletAction.DELETE
, you may have to parse the HTTP request body yourself.- Specified by:
getRequestParameters
in interfaceIPluginServletActionParams
- Returns:
- A
Map
with the parameters from theHttpServletRequest
. - See Also:
IPluginServletActionParams.getUploadFiles()
-
getUploadFiles
public Map<String,List<FileData>> getUploadFiles()
- Specified by:
getUploadFiles
in interfaceIPluginServletActionParams
- Returns:
- A
Map
between the name of an upload form element and the file(s) that were uploaded for that upload element.
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceIPluginServletActionParams
- Returns:
- The current
Locale
of the request; or the default locale in case no locale could be determined.
-
getAction
public EServletAction getAction()
- Specified by:
getAction
in interfaceIPluginServletActionParams
- Returns:
- The HTTP method of the servlet request.
-
getHeaderMap
public Map<String,String> getHeaderMap()
- Specified by:
getHeaderMap
in interfaceIPluginServletActionParams
- Returns:
- A
Map
that contains the HTTP header parameters.
-
getFrontendServer
public FrontendServer getFrontendServer()
- Specified by:
getFrontendServer
in interfaceIPluginServletActionParams
- Returns:
- The current
FrontendServer
to which the servlet request was made, ornull
if the request was made directly to the master server.
-
getBenutzer
public Benutzer getBenutzer()
- Specified by:
getBenutzer
in interfaceIPluginServletActionParams
- Returns:
- The
Benutzer
from the currentXfcSession
who called the servlet action plugin.
-
getSessionAttributes
@Deprecated public SessionAttributes getSessionAttributes()
Deprecated.- Specified by:
getSessionAttributes
in interfaceIPluginServletActionParams
-
getValueParameters
@Deprecated public ValueParameters getValueParameters()
Deprecated.- Specified by:
getValueParameters
in interfaceIPluginServletActionParams
-
getSessionID
public String getSessionID()
- Specified by:
getSessionID
in interfaceIPluginServletActionParams
- Returns:
- The session ID for the user who is currently logged in; or
null
in case no session ID is available (which may happen, for example, when the user is not logged in).
-
getPluginClient
public Mandant getPluginClient()
- Specified by:
getPluginClient
in interfaceIPluginServletActionParams
- Returns:
- The
Mandant
to which the servlet action plugin belongs to; ornull
in case the plugin was installed as a system plugin and no client was provided in the servlet action URL.
-
-