Interface ValidationExecutorReactive


public interface ValidationExecutorReactive
Interface defines a very light-weight approach to validation e.g. in reactive REST environments. This interface is not a replacement of Java Bean Validation (JSR 303) but rather a simplified facade that e.g. can be used in code that is generated by JEAF Generator.
Author:
JEAF Development Team
  • Method Summary

    Modifier and Type
    Method
    Description
    default reactor.core.publisher.Mono<Void>
    validateRequest(Class<?> pService, Object... pRequestParameters)
    Method validates the passed request objects in a reactive context.
    default reactor.core.publisher.Mono<Void>
    validateResponse(Class<?> pService, Object pResponseObject)
    Method validates the passed response object in a reactive context.
  • Method Details

    • validateRequest

      default reactor.core.publisher.Mono<Void> validateRequest(Class<?> pService, Object... pRequestParameters)
      Method validates the passed request objects in a reactive context. It is expected that implementations throws a runtime exception that describes all the validations that failed.
      Parameters:
      pService - Class object representing the service to which the passed request object belongs to. The parameter must not be null.
      pRequestParameters - All request parameters that should be validated. The parameter may be null. Please be aware that pRequestParameters might contain a mixture of different types including Java collections classes, primitive arrays etc.
    • validateResponse

      default reactor.core.publisher.Mono<Void> validateResponse(Class<?> pService, Object pResponseObject)
      Method validates the passed response object in a reactive context. It is expected that implementations throws a runtime exception that describes all the validations that failed.
      Parameters:
      pService - Class object representing the service to which the passed request object belongs to. The parameter must not be null.
      pResponseObject - Response object that should be validated. The parameter may be null.