Interface HandlerMethodValidationException.Visitor

Enclosing class:
HandlerMethodValidationException

public static interface HandlerMethodValidationException.Visitor
Contract to handle validation results with callbacks by controller method parameter type, with other(org.springframework.validation.method.ParameterValidationResult) serving as the fallthrough.
  • Method Details

    • cookieValue

      void cookieValue(CookieValue cookieValue, ParameterValidationResult result)
      Handle results for @CookieValue method parameters.
      Parameters:
      cookieValue - the annotation declared on the parameter
      result - the validation result
    • matrixVariable

      void matrixVariable(MatrixVariable matrixVariable, ParameterValidationResult result)
      Handle results for @MatrixVariable method parameters.
      Parameters:
      matrixVariable - the annotation declared on the parameter
      result - the validation result
    • modelAttribute

      void modelAttribute(@Nullable ModelAttribute modelAttribute, ParameterErrors errors)
      Handle results for @ModelAttribute method parameters.
      Parameters:
      modelAttribute - the optional ModelAttribute annotation, possibly null if the method parameter is declared without it.
      errors - the validation errors
    • pathVariable

      void pathVariable(PathVariable pathVariable, ParameterValidationResult result)
      Handle results for @PathVariable method parameters.
      Parameters:
      pathVariable - the annotation declared on the parameter
      result - the validation result
    • requestBody

      void requestBody(RequestBody requestBody, ParameterErrors errors)
      Handle results for @RequestBody method parameters.
      Parameters:
      requestBody - the annotation declared on the parameter
      errors - the validation error
    • requestHeader

      void requestHeader(RequestHeader requestHeader, ParameterValidationResult result)
      Handle results for @RequestHeader method parameters.
      Parameters:
      requestHeader - the annotation declared on the parameter
      result - the validation result
    • requestParam

      void requestParam(@Nullable RequestParam requestParam, ParameterValidationResult result)
      Handle results for @RequestParam method parameters.
      Parameters:
      requestParam - the optional RequestParam annotation, possibly null if the method parameter is declared without it.
      result - the validation result
    • requestPart

      void requestPart(RequestPart requestPart, ParameterErrors errors)
      Handle results for @RequestPart method parameters.
      Parameters:
      requestPart - the annotation declared on the parameter
      errors - the validation errors
    • other

      void other(ParameterValidationResult result)
      Handle other results that aren't any of the above.
      Parameters:
      result - the validation result