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 Summary
Modifier and TypeMethodDescriptionvoid
cookieValue
(CookieValue cookieValue, ParameterValidationResult result) Handle results for@CookieValue
method parameters.void
matrixVariable
(MatrixVariable matrixVariable, ParameterValidationResult result) Handle results for@MatrixVariable
method parameters.void
modelAttribute
(ModelAttribute modelAttribute, ParameterErrors errors) Handle results for@ModelAttribute
method parameters.void
other
(ParameterValidationResult result) Handle other results that aren't any of the above.void
pathVariable
(PathVariable pathVariable, ParameterValidationResult result) Handle results for@PathVariable
method parameters.void
requestBody
(RequestBody requestBody, ParameterErrors errors) Handle results for@RequestBody
method parameters.void
requestHeader
(RequestHeader requestHeader, ParameterValidationResult result) Handle results for@RequestHeader
method parameters.void
requestParam
(RequestParam requestParam, ParameterValidationResult result) Handle results for@RequestParam
method parameters.void
requestPart
(RequestPart requestPart, ParameterErrors errors) Handle results for@RequestPart
method parameters.
-
Method Details
-
cookieValue
Handle results for@CookieValue
method parameters.- Parameters:
cookieValue
- the annotation declared on the parameterresult
- the validation result
-
matrixVariable
Handle results for@MatrixVariable
method parameters.- Parameters:
matrixVariable
- the annotation declared on the parameterresult
- the validation result
-
modelAttribute
Handle results for@ModelAttribute
method parameters.- Parameters:
modelAttribute
- the optionalModelAttribute
annotation, possiblynull
if the method parameter is declared without it.errors
- the validation errors
-
pathVariable
Handle results for@PathVariable
method parameters.- Parameters:
pathVariable
- the annotation declared on the parameterresult
- the validation result
-
requestBody
Handle results for@RequestBody
method parameters.- Parameters:
requestBody
- the annotation declared on the parametererrors
- the validation error
-
requestHeader
Handle results for@RequestHeader
method parameters.- Parameters:
requestHeader
- the annotation declared on the parameterresult
- the validation result
-
requestParam
Handle results for@RequestParam
method parameters.- Parameters:
requestParam
- the optionalRequestParam
annotation, possiblynull
if the method parameter is declared without it.result
- the validation result
-
requestPart
Handle results for@RequestPart
method parameters.- Parameters:
requestPart
- the annotation declared on the parametererrors
- the validation errors
-
other
Handle other results that aren't any of the above.- Parameters:
result
- the validation result
-