Uses of Class
org.springframework.validation.method.ParameterValidationResult
Package
Description
Abstractions and support classes for method validation, independent of the
underlying validation library.
Support classes for annotation-based handler method processing.
-
Uses of ParameterValidationResult in org.springframework.validation.method
Modifier and TypeClassDescriptionclass
Extension ofParameterValidationResult
created for Object method parameters or return values with nested errors on their properties.Modifier and TypeMethodDescriptiondefault List<ParameterValidationResult>
MethodValidationResult.getAllValidationResults()
Deprecated, for removal: This API element is subject to removal in a future version.MethodValidationException.getParameterValidationResults()
MethodValidationResult.getParameterValidationResults()
Return all validation results per method parameter, including bothMethodValidationResult.getValueResults()
andMethodValidationResult.getBeanResults()
.default List<ParameterValidationResult>
MethodValidationResult.getValueResults()
Return the subset ofallValidationResults
that includes method parameters with validation errors directly on method argument values.Modifier and TypeMethodDescriptionstatic MethodValidationResult
MethodValidationResult.create
(Object target, Method method, List<ParameterValidationResult> results) Factory method to create aMethodValidationResult
instance.static MethodValidationResult
MethodValidationResult.create
(Object target, Method method, List<ParameterValidationResult> results, List<MessageSourceResolvable> crossParameterErrors) Factory method to create aMethodValidationResult
instance. -
Uses of ParameterValidationResult in org.springframework.web.method.annotation
Modifier and TypeMethodDescriptionHandlerMethodValidationException.getParameterValidationResults()
Modifier and TypeMethodDescriptionvoid
HandlerMethodValidationException.Visitor.cookieValue
(CookieValue cookieValue, ParameterValidationResult result) Handle results for@CookieValue
method parameters.void
HandlerMethodValidationException.Visitor.matrixVariable
(MatrixVariable matrixVariable, ParameterValidationResult result) Handle results for@MatrixVariable
method parameters.void
HandlerMethodValidationException.Visitor.other
(ParameterValidationResult result) Handle other results that aren't any of the above.void
HandlerMethodValidationException.Visitor.pathVariable
(PathVariable pathVariable, ParameterValidationResult result) Handle results for@PathVariable
method parameters.void
HandlerMethodValidationException.Visitor.requestHeader
(RequestHeader requestHeader, ParameterValidationResult result) Handle results for@RequestHeader
method parameters.void
HandlerMethodValidationException.Visitor.requestParam
(RequestParam requestParam, ParameterValidationResult result) Handle results for@RequestParam
method parameters.
MethodValidationResult.getParameterValidationResults()