Class ContentLengthValidator

java.lang.Object
com.xceptance.xlt.api.validators.ContentLengthValidator

public class ContentLengthValidator extends Object
Validates the downloaded content length with the announced size from the HTTP header.
  • Constructor Details

    • ContentLengthValidator

      public ContentLengthValidator()
  • Method Details

    • validate

      public void validate(HtmlPage page)
      Validates the specified HTML page.
      Parameters:
      page - the page to check
      Throws:
      AssertionError - if the page fails validation
    • validate

      public void validate(LightWeightPage page)
      Validates the specified lightweight HTML page.
      Parameters:
      page - the page to check
      Throws:
      AssertionError - if the page fails validation
    • getInstance

      public static ContentLengthValidator getInstance()
      Returns the singleton instance.
      Returns:
      the singleton instance