Class ActionContextTemplate
java.lang.Object
com.aquima.interactions.test.templates.context.EventContextTemplate
com.aquima.interactions.test.templates.context.ActionContextTemplate
Template that may be used to create an action context.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the template with an new application template.ActionContextTemplate
(IApplicationTemplate application) Constructs the template with the specified application template. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String name, Object attributeValue) This method may be invoked to add a parameter for the action handler.protected String
This method returns the application template that is used by the action context.void
setActionName
(String name) This method should be invoked to set the name of the action handler.com.aquima.interactions.portal.IActionContext
This method converts the template to an action context.Methods inherited from class com.aquima.interactions.test.templates.context.EventContextTemplate
getEvent, getSessionId, setFiredEvent, setSessionId
-
Constructor Details
-
ActionContextTemplate
public ActionContextTemplate()Constructs the template with an new application template. -
ActionContextTemplate
Constructs the template with the specified application template.- Parameters:
application
- The application template that should be used by the action context.
-
-
Method Details
-
addParameter
This method may be invoked to add a parameter for the action handler.- Parameters:
name
- The name of the parameter.attributeValue
- The value of the parameter.
-
getParameters
-
getApplicationTemplate
This method returns the application template that is used by the action context.- Specified by:
getApplicationTemplate
in classEventContextTemplate
- Returns:
- the application template that is used by the action context.
-
getActionName
-
setActionName
This method should be invoked to set the name of the action handler.- Parameters:
name
- The name of the action handler.
-
toContext
public com.aquima.interactions.portal.IActionContext toContext()This method converts the template to an action context.- Returns:
- Action context based on the template.
-