Package | Description |
---|---|
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
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 4.0) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
|
org.springframework.web.bind.support |
Support classes for web data binding.
|
org.springframework.web.portlet.mvc |
Standard controller implementations for the portlet MVC framework that
comes with Spring.
|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
org.springframework.web.servlet.mvc |
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
|
org.springframework.web.servlet.mvc.multiaction |
Package allowing MVC Controller implementations to handle requests
at method rather than class level.
|
Modifier and Type | Method and Description |
---|---|
StandaloneMockMvcBuilder |
StandaloneMockMvcBuilder.setValidator(Validator validator)
Provide a custom
Validator instead of the one created by default. |
Modifier and Type | Interface and Description |
---|---|
interface |
SmartValidator
Extended variant of the
Validator interface, adding support for
validation 'hints'. |
Modifier and Type | Method and Description |
---|---|
Validator |
DataBinder.getValidator()
Return the primary Validator to apply after each binding step, if any.
|
Modifier and Type | Method and Description |
---|---|
List<Validator> |
DataBinder.getValidators()
Return the Validators to apply after data binding.
|
Modifier and Type | Method and Description |
---|---|
void |
DataBinder.addValidators(Validator... validators)
Add Validators to apply after each binding step.
|
static void |
ValidationUtils.invokeValidator(Validator validator,
Object obj,
Errors errors)
|
static void |
ValidationUtils.invokeValidator(Validator validator,
Object obj,
Errors errors,
Object... validationHints)
|
void |
DataBinder.replaceValidators(Validator... validators)
Replace the Validators to apply after each binding step.
|
void |
DataBinder.setValidator(Validator validator)
Set the Validator to apply after each binding step.
|
Modifier and Type | Class and Description |
---|---|
class |
CustomValidatorBean
Configurable bean class that exposes a specific JSR-303 Validator
through its original interface as well as through the Spring
Validator interface. |
class |
LocalValidatorFactoryBean
This is the central class for
javax.validation (JSR-303) setup
in a Spring application context: It bootstraps a javax.validation.ValidationFactory
and exposes it through the Spring Validator interface
as well as through the JSR-303 Validator interface and the
ValidatorFactory interface itself. |
class |
SpringValidatorAdapter
Adapter that takes a JSR-303
javax.validator.Validator
and exposes it as a Spring Validator
while also exposing the original JSR-303 Validator interface itself. |
Modifier and Type | Method and Description |
---|---|
Validator |
ConfigurableWebBindingInitializer.getValidator()
Return the Validator to apply after each binding step, if any.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurableWebBindingInitializer.setValidator(Validator validator)
Set the Validator to apply after each binding step.
|
Modifier and Type | Method and Description |
---|---|
Validator |
BaseCommandController.getValidator()
Deprecated.
|
Validator[] |
BaseCommandController.getValidators()
Deprecated.
Return the Validators for this controller.
|
Modifier and Type | Method and Description |
---|---|
void |
BaseCommandController.setValidator(Validator validator)
Deprecated.
Set the primary Validator for this controller.
|
void |
BaseCommandController.setValidators(Validator[] validators)
Deprecated.
Set the Validators for this controller.
|
Modifier and Type | Method and Description |
---|---|
Validator |
WebMvcConfigurerAdapter.getValidator()
Provide a custom
Validator instead of the one created by default. |
protected Validator |
DelegatingWebMvcConfiguration.getValidator() |
Validator |
WebMvcConfigurer.getValidator()
Provide a custom
Validator instead of the one created by default. |
protected Validator |
WebMvcConfigurationSupport.getValidator()
Override this method to provide a custom
Validator . |
Validator |
WebMvcConfigurationSupport.mvcValidator()
Return a global
Validator instance for example for validating
@ModelAttribute and @RequestBody method arguments. |
Modifier and Type | Method and Description |
---|---|
Validator |
BaseCommandController.getValidator()
Deprecated.
Return the primary Validator for this controller.
|
Validator[] |
BaseCommandController.getValidators()
Deprecated.
Return the Validators for this controller.
|
Modifier and Type | Method and Description |
---|---|
void |
BaseCommandController.setValidator(Validator validator)
Deprecated.
Set the primary Validator for this controller.
|
void |
BaseCommandController.setValidators(Validator[] validators)
Deprecated.
Set the Validators for this controller.
|
Modifier and Type | Method and Description |
---|---|
Validator[] |
MultiActionController.getValidators()
Return the Validators for this controller.
|
Modifier and Type | Method and Description |
---|---|
void |
MultiActionController.setValidators(Validator[] validators)
Set the
Validators for this controller. |
Copyright © 2015. All rights reserved.