Class HTTPConfiguration


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

      • HTTPConfiguration

        public HTTPConfiguration()
    • Method Detail

      • method

        public HTTPMethod method()
        Get the method value.
        Returns:
        the method value
      • withMethod

        public HTTPConfiguration withMethod​(HTTPMethod method)
        Set the method value.
        Parameters:
        method - the method value to set
        Returns:
        the HTTPConfiguration object itself.
      • headers

        public List<HTTPHeader> headers()
        Get the headers value.
        Returns:
        the headers value
      • withHeaders

        public HTTPConfiguration withHeaders​(List<HTTPHeader> headers)
        Set the headers value.
        Parameters:
        headers - the headers value to set
        Returns:
        the HTTPConfiguration object itself.
      • validStatusCodes

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

        public HTTPConfiguration withValidStatusCodes​(List<Integer> validStatusCodes)
        Set the validStatusCodes value.
        Parameters:
        validStatusCodes - the validStatusCodes value to set
        Returns:
        the HTTPConfiguration object itself.