Class HttpConfiguration


  • public final class HttpConfiguration
    extends Object
    HTTP configuration of the connectivity check.
    • Constructor Detail

      • HttpConfiguration

        public HttpConfiguration()
    • Method Detail

      • method

        public HttpMethod method()
        Get the method property: HTTP method.
        Returns:
        the method value.
      • withMethod

        public HttpConfiguration withMethod​(HttpMethod method)
        Set the method property: HTTP method.
        Parameters:
        method - the method value to set.
        Returns:
        the HttpConfiguration object itself.
      • headers

        public List<HttpHeader> headers()
        Get the headers property: List of HTTP headers.
        Returns:
        the headers value.
      • withHeaders

        public HttpConfiguration withHeaders​(List<HttpHeader> headers)
        Set the headers property: List of HTTP headers.
        Parameters:
        headers - the headers value to set.
        Returns:
        the HttpConfiguration object itself.
      • validStatusCodes

        public List<Integer> validStatusCodes()
        Get the validStatusCodes property: Valid status codes.
        Returns:
        the validStatusCodes value.
      • withValidStatusCodes

        public HttpConfiguration withValidStatusCodes​(List<Integer> validStatusCodes)
        Set the validStatusCodes property: Valid status codes.
        Parameters:
        validStatusCodes - the validStatusCodes value to set.
        Returns:
        the HttpConfiguration object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.