Interface WarningsHandler


public interface WarningsHandler
Called if there are warnings to determine if those warnings should fail the request.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final WarningsHandler
    The permissive warnings handler.
    static final WarningsHandler
    The strict warnings handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether the given list of warnings should fail the request.
  • Field Details

    • PERMISSIVE

      static final WarningsHandler PERMISSIVE
      The permissive warnings handler. Warnings will not fail the request.
    • STRICT

      static final WarningsHandler STRICT
      The strict warnings handler. Warnings will fail the request.
  • Method Details

    • warningsShouldFailRequest

      boolean warningsShouldFailRequest(List<String> warnings)
      Determines whether the given list of warnings should fail the request.
      Parameters:
      warnings - a list of warnings.
      Returns:
      boolean indicating if the request should fail.