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 EServletAction
getAction()
Benutzer
getBenutzer()
FrontendServer
getFrontendServer()
Map<Serializable,Serializable>
getFrqSessionAttributes()
Gets the values stored in the currentFRQSession
.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.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
- 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, 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
- theFrontendServer
that sent the requestclient
- The client context, may benull
for a system plugin.sessionId
- ID of the current session, may benull
or 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
- theFrontendServer
that sent the requestclient
- The client context, may benull
for a system plugin.sessionId
- ID of the current session, may benull
or 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
- theFrontendServer
that sent the request
-
-
Method Detail
-
getSessionAttributeMap
@Deprecated public Map<String,Serializable> getSessionAttributeMap()
Deprecated.Description copied from interface:IPluginServletActionParams
Gets 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:
getSessionAttributeMap
in interfaceIPluginServletActionParams
- Returns:
- A map
Map
with all attributes of the currentHttpSession
.
-
getFrqSessionAttributes
public Map<Serializable,Serializable> getFrqSessionAttributes()
Description copied from interface:IPluginServletActionParams
Gets 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:
getFrqSessionAttributes
in 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: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.
-
-