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 EServletActiongetAction()BenutzergetBenutzer()FrontendServergetFrontendServer()Map<String,String>getHeaderMap()LocalegetLocale()MandantgetPluginClient()Map<String,List<String>>getRequestParameters()The parameters from the HTTP request.Map<String,Serializable>getSessionAttributeMap()Deprecated.SessionAttributesgetSessionAttributes()Deprecated.StringgetSessionID()Map<String,List<FileData>>getUploadFiles()ValueParametersgetValueParameters()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- theFrontendServerthat 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- theFrontendServerthat sent the request
-
-
Method Detail
-
getSessionAttributeMap
@Deprecated public Map<String,Serializable> getSessionAttributeMap()
Deprecated.- Specified by:
getSessionAttributeMapin interfaceIPluginServletActionParams- Returns:
- A map
Mapwith 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:IPluginServletActionParamsThe 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:
getRequestParametersin interfaceIPluginServletActionParams- Returns:
- A
Mapwith the parameters from theHttpServletRequest. - See Also:
IPluginServletActionParams.getUploadFiles()
-
getUploadFiles
public Map<String,List<FileData>> getUploadFiles()
- Specified by:
getUploadFilesin interfaceIPluginServletActionParams- Returns:
- A
Mapbetween the name of an upload form element and the file(s) that were uploaded for that upload element.
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceIPluginServletActionParams- Returns:
- The current
Localeof the request; or the default locale in case no locale could be determined.
-
getAction
public EServletAction getAction()
- Specified by:
getActionin interfaceIPluginServletActionParams- Returns:
- The HTTP method of the servlet request.
-
getHeaderMap
public Map<String,String> getHeaderMap()
- Specified by:
getHeaderMapin interfaceIPluginServletActionParams- Returns:
- A
Mapthat contains the HTTP header parameters.
-
getFrontendServer
public FrontendServer getFrontendServer()
- Specified by:
getFrontendServerin interfaceIPluginServletActionParams- Returns:
- The current
FrontendServerto which the servlet request was made, ornullif the request was made directly to the master server.
-
getBenutzer
public Benutzer getBenutzer()
- Specified by:
getBenutzerin interfaceIPluginServletActionParams- Returns:
- The
Benutzerfrom the currentXfcSessionwho called the servlet action plugin.
-
getSessionAttributes
@Deprecated public SessionAttributes getSessionAttributes()
Deprecated.- Specified by:
getSessionAttributesin interfaceIPluginServletActionParams
-
getValueParameters
@Deprecated public ValueParameters getValueParameters()
Deprecated.- Specified by:
getValueParametersin interfaceIPluginServletActionParams
-
getSessionID
public String getSessionID()
- Specified by:
getSessionIDin interfaceIPluginServletActionParams- Returns:
- The session ID for the user who is currently logged in; or
nullin case no session ID is available (which may happen, for example, when the user is not logged in).
-
getPluginClient
public Mandant getPluginClient()
- Specified by:
getPluginClientin interfaceIPluginServletActionParams- Returns:
- The
Mandantto which the servlet action plugin belongs to; ornullin case the plugin was installed as a system plugin and no client was provided in the servlet action URL.
-
-