Interface ValidationReportHandler

All Known Implementing Classes:
DefaultValidationReportHandler

public interface ValidationReportHandler
By implementing this interface you can define your own way how to react on validation issues - either request or response. You can define own logging or throw your specific exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleRequestReport(String loggingKey, ValidationReport validationReport)
    Method which gives you way how to override logging of request validation issues.
    void
    handleResponseReport(String loggingKey, ValidationReport validationReport)
    Method which gives you way how to override logging of response validation issues.
  • Method Details

    • handleRequestReport

      void handleRequestReport(String loggingKey, ValidationReport validationReport)
      Method which gives you way how to override logging of request validation issues.
      Parameters:
      loggingKey - request identifier - method and request path
      validationReport - result of validation
    • handleResponseReport

      void handleResponseReport(String loggingKey, ValidationReport validationReport)
      Method which gives you way how to override logging of response validation issues.
      Parameters:
      loggingKey - request identifier - method and request path
      validationReport - result of validation