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)PluginServletActionParams(Map<String,Serializable> httpSessionAttributes, Map<Serializable,Serializable> frqSessionAttributes, 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)Constructor for creating a parameters object with all necessary request dataPluginServletActionParams(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)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) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EServletActiongetAction()BenutzergetBenutzer()FrontendServergetFrontendServer()Map<Serializable,Serializable>getFrqSessionAttributes()Gets the values stored in the currentFRQSession.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.Constructor for creating a parameters object with all necessary request data- Parameters:
 sessionAttributes- attributes from the current sessionvalueParameter- request parameteruploadFiles- Files that were sent with the request.locale- 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, Mandant client, String sessionId)
Deprecated.Constructor for creating a parameters object with all necessary request data- Parameters:
 sessionAttributes- attributes from the current sessionvalueParameter- request parameteruploadFiles- Files that were sent with the request.benutzer- 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 requestclient- The client context, may benullfor a system plugin.sessionId- ID of the current session, may benullor empty when no session exists.
 
- 
PluginServletActionParams
public PluginServletActionParams(Map<String,Serializable> httpSessionAttributes, Map<Serializable,Serializable> frqSessionAttributes, 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)
Constructor for creating a parameters object with all necessary request data- Parameters:
 httpSessionAttributes- attributes from the current HTTP sessionfrqSessionAttributes- Attributes from the current form request session, if any.valueParameter- request parameteruploadFiles- Files that were sent with the request.benutzer- 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 requestclient- The client context, may benullfor a system plugin.sessionId- ID of the current session, may benullor empty when no session exists.
 
- 
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.Description copied from interface:IPluginServletActionParamsGets the values from the currentHttpSession. The servlet plugin may be executed on a different server that does not have direct access to the HTTP request: Please note that changes to this map are NOT reflected or saved in theHttpSession. To modify the session attributes, use theIPluginServletActionRetVal.getSessionAttributeMap()return value.- Specified by:
 getSessionAttributeMapin interfaceIPluginServletActionParams- Returns:
 - A map 
Mapwith all attributes of the currentHttpSession. 
 
- 
getFrqSessionAttributes
public Map<Serializable,Serializable> getFrqSessionAttributes()
Description copied from interface:IPluginServletActionParamsGets the values stored in the currentFRQSession. The servlet plugin may be executed on a different server that does not have direct access to the HTTP request: Please note that changes to this map are NOT reflected or saved in theFRQSession. To modify the FRQ session attributes, use theIPluginServletActionRetVal.getFrqSessionAttributeMap()return value.- Specified by:
 getFrqSessionAttributesin interfaceIPluginServletActionParams- Returns:
 - Attributes from the form request session of the current request. If no such session exists, this is an empty map.
 
 
- 
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. 
 
 - 
 
 -