Package | Description |
---|---|
org.springframework.messaging.handler.annotation.support |
Support classes for working with annotated message-handling methods.
|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.validation.beanvalidation |
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.bind.support |
Support classes for web data binding.
|
Modifier and Type | Method and Description |
---|---|
BindingResult |
MethodArgumentNotValidException.getBindingResult()
Return the BindingResult if the failure is validation-related,
or
null if none. |
Constructor and Description |
---|
MethodArgumentNotValidException(Message<?> message,
MethodParameter parameter,
BindingResult bindingResult)
Create a new instance with the invalid
MethodParameter and a
BindingResult . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBindingResult
Abstract implementation of the
BindingResult interface and
its super-interface Errors . |
class |
AbstractPropertyBindingResult
Abstract base class for
BindingResult implementations that work with
Spring's PropertyAccessor mechanism. |
class |
BeanPropertyBindingResult
Default implementation of the
Errors and BindingResult
interfaces, for the registration and evaluation of binding errors on
JavaBean objects. |
class |
BindException
Thrown when binding errors are considered fatal.
|
class |
DirectFieldBindingResult
Special implementation of the Errors and BindingResult interfaces,
supporting registration and evaluation of binding errors on value objects.
|
class |
MapBindingResult
Map-based implementation of the BindingResult interface,
supporting registration and evaluation of binding errors on
Map attributes.
|
Modifier and Type | Method and Description |
---|---|
BindingResult |
BindException.getBindingResult()
Return the BindingResult that this BindException wraps.
|
BindingResult |
DataBinder.getBindingResult()
Return the BindingResult instance created by this DataBinder.
|
static BindingResult |
BindingResultUtils.getBindingResult(Map<?,?> model,
String name)
Find the BindingResult for the given name in the given model.
|
static BindingResult |
BindingResultUtils.getRequiredBindingResult(Map<?,?> model,
String name)
Find a required BindingResult for the given name in the given model.
|
Modifier and Type | Method and Description |
---|---|
void |
BindingErrorProcessor.processMissingFieldError(String missingField,
BindingResult bindingResult)
Apply the missing field error to the given BindException.
|
void |
DefaultBindingErrorProcessor.processMissingFieldError(String missingField,
BindingResult bindingResult) |
void |
BindingErrorProcessor.processPropertyAccessException(PropertyAccessException ex,
BindingResult bindingResult)
Translate the given
PropertyAccessException to an appropriate
error registered on the given Errors instance. |
void |
DefaultBindingErrorProcessor.processPropertyAccessException(PropertyAccessException ex,
BindingResult bindingResult) |
Constructor and Description |
---|
BindException(BindingResult bindingResult)
Create a new BindException instance for a BindingResult.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
SpringValidatorAdapter.getRejectedValue(String field,
ConstraintViolation<Object> violation,
BindingResult bindingResult)
Extract the rejected value behind the given constraint violation,
for exposure through the Spring errors representation.
|
Modifier and Type | Class and Description |
---|---|
class |
MethodArgumentNotValidException
Exception to be thrown when validation on an argument annotated with
@Valid fails. |
Constructor and Description |
---|
MethodArgumentNotValidException(MethodParameter parameter,
BindingResult bindingResult)
Constructor for
MethodArgumentNotValidException . |
Modifier and Type | Class and Description |
---|---|
class |
WebExchangeBindException
A specialization of
ServerWebInputException thrown when after data
binding and validation failure. |
Modifier and Type | Method and Description |
---|---|
BindingResult |
WebExchangeBindException.getBindingResult()
Return the BindingResult that this BindException wraps.
|
Constructor and Description |
---|
WebExchangeBindException(MethodParameter parameter,
BindingResult bindingResult) |