java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.Criterion
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.HttpCriterion
All Implemented Interfaces:
Serializable

public class HttpCriterion extends Criterion
Connector detection criterion using HTTP protocol.
See Also:
  • Constructor Details

    • HttpCriterion

      public HttpCriterion(String type, boolean forceSerialization, HttpMethod method, String url, String path, String header, String body, String expectedResult, String errorMessage, ResultContent resultContent, String authenticationToken)
      Constructor with builder for creating an instance of HttpCriterion.
      Parameters:
      type - Type of the criterion.
      forceSerialization - Flag indicating whether serialization should be forced.
      method - HTTP method for the test.
      url - URL for the HTTP test.
      header - Header for the HTTP test.
      body - Body for the HTTP test.
      expectedResult - Expected result for the HTTP test.
      errorMessage - Error message for the HTTP test.
      resultContent - Result content for the HTTP test.
      authenticationToken - Authentication token for the HTTP test.
  • Method Details

    • accept

      public CriterionTestResult accept(ICriterionProcessor criterionProcessor)
      Accepts the given criterion processor for evaluation.
      Specified by:
      accept in class Criterion
      Parameters:
      criterionProcessor - The criterion processor to accept.
      Returns:
      The result of the criterion detection.