Class RequestTemplate

java.lang.Object
com.aquima.interactions.test.templates.session.RequestTemplate

public class RequestTemplate extends Object
This template class can be used to simulate a request.
Since:
6.0
Author:
Jon van Leuven
  • Constructor Details

    • RequestTemplate

      public RequestTemplate()
      Constructs an empty request template.
    • RequestTemplate

      public RequestTemplate(String fieldName, String value)
      Constructs a request template for a single field.
      Parameters:
      fieldName - The name of the field.
      value - The value of the field.
    • RequestTemplate

      public RequestTemplate(String fieldName, String... values)
      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

      public final void addFieldValue(String fieldName, String strValue)
      This method adds a field value to the request.
      Parameters:
      fieldName - The name of the field.
      strValue - The value of the field.
    • addFieldValue

      public final void addFieldValue(String fieldName, int fieldIndex, String strValue)
      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

      public final void addFieldValues(String fieldName, int fieldIndex, String... values)
      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

      public final void addFieldValues(String fieldName, String... values)
      This method adds field values to the request.
      Parameters:
      fieldName - The name of the field.
      values - The values of the field.
    • addRequestValue

      public void addRequestValue(String parameterName, Serializable objValue)
      This method adds a request parameter.
      Parameters:
      parameterName - The name of the parameter.
      objValue - The value of the parameter.