Class RestServiceTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.RestServiceTemplate

public class RestServiceTemplate extends AbstractReportingTemplate
This class may be used to quickly initialize a model.
Since:
9.0
Author:
Jon van Leuven, Arjan Pragt
  • Constructor Details

    • RestServiceTemplate

      protected RestServiceTemplate(String serviceName, String schemaSet, boolean useDomainSchemas, com.aquima.interactions.foundation.report.IInitializationReport report)
  • Method Details

    • getLocation

      protected String getLocation()
    • setLocation

      public void setLocation(String location)
      This method sets the location of the rest service.
      Parameters:
      location - The url of the rest service, may not be null.
    • getSchemaSet

      protected String getSchemaSet()
    • setSchemaSet

      public void setSchemaSet(String schemaSet)
      This method sets the schemaset of the rest service.
      Parameters:
      schemaSet - The name of the schemaset, may not be null.
    • addOperation

      public RestOperationTemplate addOperation(String operationName)
      Use this method to add an operation to this webservice.
      Parameters:
      operationName - The operation name.
      Returns:
      The created template.
    • toDataSource

      public com.aquima.interactions.communication.ds.IRestServiceDS toDataSource()
      This method converts the template to a data source that can be used to initialize the definition.
      Returns:
      a data source that can be used to initialize the definition.
    • getName

      protected String getName()
    • getOperations

      protected Iterator<RestOperationTemplate> getOperations()
    • doesUseDomainSchemas

      protected boolean doesUseDomainSchemas()
    • getDirection

      protected com.aquima.interactions.communication.impl.RestServiceDirection getDirection()
    • setDirection

      public void setDirection(com.aquima.interactions.communication.impl.RestServiceDirection direction)