Interface ResponseInspectionHeader.Builder

    • Method Detail

      • name

        ResponseInspectionHeader.Builder name​(String name)

        The name of the header to match against. The name must be an exact match, including case.

        JSON example: "Name": [ "RequestResult" ]

        Parameters:
        name - The name of the header to match against. The name must be an exact match, including case.

        JSON example: "Name": [ "RequestResult" ]

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • successValues

        ResponseInspectionHeader.Builder successValues​(Collection<String> successValues)

        Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ] and "SuccessValues": [ "AccountCreated", "Successful account creation" ]

        Parameters:
        successValues - Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ] and "SuccessValues": [ "AccountCreated", "Successful account creation" ]

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • successValues

        ResponseInspectionHeader.Builder successValues​(String... successValues)

        Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ] and "SuccessValues": [ "AccountCreated", "Successful account creation" ]

        Parameters:
        successValues - Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ] and "SuccessValues": [ "AccountCreated", "Successful account creation" ]

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failureValues

        ResponseInspectionHeader.Builder failureValues​(Collection<String> failureValues)

        Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ] and "FailureValues": [ "AccountCreationFailed" ]

        Parameters:
        failureValues - Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ] and "FailureValues": [ "AccountCreationFailed" ]

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failureValues

        ResponseInspectionHeader.Builder failureValues​(String... failureValues)

        Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ] and "FailureValues": [ "AccountCreationFailed" ]

        Parameters:
        failureValues - Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.

        JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ] and "FailureValues": [ "AccountCreationFailed" ]

        Returns:
        Returns a reference to this object so that method calls can be chained together.