Class RequestTemplate
java.lang.Object
com.aquima.interactions.test.templates.session.RequestTemplate
This template class can be used to simulate a request.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorDescriptionConstructs an empty request template.RequestTemplate
(String fieldName, String value) Constructs a request template for a single field.RequestTemplate
(String fieldName, String... values) Constructs a request template for a single field. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addFieldValue
(String fieldName, int fieldIndex, String strValue) This method adds a field value to the request.final void
addFieldValue
(String fieldName, String strValue) This method adds a field value to the request.final void
addFieldValues
(String fieldName, int fieldIndex, String... values) This method adds field values to the request.final void
addFieldValues
(String fieldName, String... values) This method adds field values to the request.void
addRequestValue
(String parameterName, Serializable objValue) This method adds a request parameter.protected void
setValues
(com.aquima.interactions.portal.PortalEvent event, com.aquima.interactions.composer.IPage page)
-
Constructor Details
-
RequestTemplate
public RequestTemplate()Constructs an empty request template. -
RequestTemplate
Constructs a request template for a single field.- Parameters:
fieldName
- The name of the field.value
- The value of the field.
-
RequestTemplate
Constructs a request template for a single field.- Parameters:
fieldName
- The name of the field.values
- The values of the field.
-
-
Method Details
-
setValues
protected void setValues(com.aquima.interactions.portal.PortalEvent event, com.aquima.interactions.composer.IPage page) -
addFieldValue
This method adds a field value to the request.- Parameters:
fieldName
- The name of the field.strValue
- The value of the field.
-
addFieldValue
This method adds a field value to the request.- Parameters:
fieldName
- The name of the field.fieldIndex
- The index of the field.strValue
- The value of the field.
-
addFieldValues
This method adds field values to the request.- Parameters:
fieldName
- The name of the field.fieldIndex
- The index of the field.values
- The values of the field.
-
addFieldValues
This method adds field values to the request.- Parameters:
fieldName
- The name of the field.values
- The values of the field.
-
addRequestValue
This method adds a request parameter.- Parameters:
parameterName
- The name of the parameter.objValue
- The value of the parameter.
-