Package com.xceptance.xlt.api.validators

# Class StandardValidator

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

public class StandardValidator extends Object
This validator groups the four most common validators into one to make the integration into the code easier.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StandardValidator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static StandardValidator`
  `getInstance()`
  Returns the instance.
  `void`
  `validate(HtmlPage page)`
  The most common validators grouped into one validator to simplify the integration.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### StandardValidator

    public StandardValidator()

- ## Method Details

  - ### validate

    public void validate(HtmlPage page) throws Exception
    The most common validators grouped into one validator to simplify the integration. It will validate the following aspects:
    - response code,
    - content length,
    - closing HTML tag and
    - JTidy
    Parameters:
      `page` - the page to check
    Throws:
      `Exception`

  - ### getInstance

    public static StandardValidator getInstance()
    Returns the instance.
    Returns:
      the singleton instance of this validator