Class PluginServletActionRetVal
java.lang.Object
de.xima.fc.plugin.models.retval.servlet.PluginServletActionRetVal
- All Implemented Interfaces:
IPluginReturnValue,IPluginServletActionRetVal,Serializable
POJO implementation of
IPluginServletActionRetVal.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new POJO with the given servlet response.PluginServletActionRetVal(IServletResponse result, int statusCode) Creates a new POJO with the given servlet response.PluginServletActionRetVal(IServletResponse result, int statusCode, Map<String, Serializable> sessionAttributes, Map<String, Serializable> frqAttributes) Creates a new POJO with the given servlet response.PluginServletActionRetVal(IServletResponse result, Map<String, Serializable> sessionAttributes, Map<String, Serializable> frqAttributes) Creates a new POJO with the given servlet response. -
Method Summary
Modifier and TypeMethodDescriptionA map of key-value pairs with FRQ session attributes that are written to theFRQSession.intA map of key-value pairs with session attributes that are written to theHttpSession.
-
Constructor Details
-
PluginServletActionRetVal
Creates a new POJO with the given servlet response.- Parameters:
result- Servlet response that should be returned to the client.
-
PluginServletActionRetVal
Creates a new POJO with the given servlet response.- Parameters:
result- Servlet response that should be returned to the client.statusCode- Status code to use for the HTTP response.
-
PluginServletActionRetVal
public PluginServletActionRetVal(IServletResponse result, int statusCode, Map<String, Serializable> sessionAttributes, Map<String, Serializable> frqAttributes) Creates a new POJO with the given servlet response.- Parameters:
result- Servlet response that should be returned to the client.statusCode- Status code to use for the HTTP response.sessionAttributes- Map with session attributes that should be added to the current session.frqAttributes- Map withFRQSessionattributes that should be added to the current FRQ session.
-
PluginServletActionRetVal
public PluginServletActionRetVal(IServletResponse result, Map<String, Serializable> sessionAttributes, Map<String, Serializable> frqAttributes) Creates a new POJO with the given servlet response.- Parameters:
result- Servlet response that should be returned to the client.sessionAttributes- Map with session attributes that should be added to the current session.frqAttributes- Map withFRQSessionattributes that should be added to the current FRQ session.
-
-
Method Details
-
getFrqSessionAttributeMap
Description copied from interface:IPluginServletActionRetValA map of key-value pairs with FRQ session attributes that are written to theFRQSession. When the session already contains a value for a parameter, it is overwritten.- Specified by:
getFrqSessionAttributeMapin interfaceIPluginServletActionRetVal- Returns:
- A
Mapwith FRQ session attributes to set on theFRQSession.
-
getHttpStatusCode
public int getHttpStatusCode()- Specified by:
getHttpStatusCodein interfaceIPluginServletActionRetVal- Returns:
- The HTTP status code that is to be returned to the client in response to the HTTP request.
-
getResponse
- Specified by:
getResponsein interfaceIPluginServletActionRetVal- Returns:
- The
IServletResponsethat is to be returned to the client in response to the HTTP request.
-
getSessionAttributeMap
Description copied from interface:IPluginServletActionRetValA map of key-value pairs with session attributes that are written to theHttpSession. When the session already contains a value for a parameter, it is overwritten.- Specified by:
getSessionAttributeMapin interfaceIPluginServletActionRetVal- Returns:
- A
Mapwith session attributes to set on theHttpSession.
-