Uses of Interface
org.springframework.validation.Validator
Packages that use Validator Package Description org.springframework.messaging.handler.annotation.reactive Support classes for working with annotated message-handling methods with non-blocking, reactive contracts.org.springframework.messaging.handler.annotation.support Support classes for working with annotated message-handling methods.org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilder
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) 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.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.Uses of Validator in org.springframework.messaging.handler.annotation.reactive
Methods in org.springframework.messaging.handler.annotation.reactive that return Validator Modifier and Type Method Description Validator
MessageMappingMessageHandler. getValidator()
Return the configured Validator instance.Validator
PayloadMethodArgumentResolver. getValidator()
Return the configured validator, if any.Methods in org.springframework.messaging.handler.annotation.reactive with parameters of type Validator Modifier and Type Method Description void
MessageMappingMessageHandler. setValidator(Validator validator)
Set the Validator instance used for validating@Payload
arguments.Constructors in org.springframework.messaging.handler.annotation.reactive with parameters of type Validator Constructor Description PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders, Validator validator, ReactiveAdapterRegistry registry, boolean useDefaultResolution)
Uses of Validator in org.springframework.messaging.handler.annotation.support
Methods in org.springframework.messaging.handler.annotation.support with parameters of type Validator Modifier and Type Method Description void
DefaultMessageHandlerMethodFactory. setValidator(Validator validator)
Set the Validator instance used for validating@Payload
arguments.Constructors in org.springframework.messaging.handler.annotation.support with parameters of type Validator Constructor Description PayloadArgumentResolver(MessageConverter messageConverter, Validator validator)
Deprecated.PayloadArgumentResolver(MessageConverter messageConverter, Validator validator, boolean useDefaultResolution)
Deprecated.PayloadMethodArgumentResolver(MessageConverter messageConverter, Validator validator)
PayloadMethodArgumentResolver(MessageConverter messageConverter, Validator validator, boolean useDefaultResolution)
Uses of Validator in org.springframework.messaging.simp.annotation.support
Methods in org.springframework.messaging.simp.annotation.support that return Validator Modifier and Type Method Description Validator
SimpAnnotationMethodMessageHandler. getValidator()
Return the configured Validator instance.Methods in org.springframework.messaging.simp.annotation.support with parameters of type Validator Modifier and Type Method Description void
SimpAnnotationMethodMessageHandler. setValidator(Validator validator)
Set the Validator instance used for validating@Payload
arguments.Uses of Validator in org.springframework.messaging.simp.config
Methods in org.springframework.messaging.simp.config that return Validator Modifier and Type Method Description Validator
AbstractMessageBrokerConfiguration. getValidator()
Override this method to provide a customValidator
.protected Validator
AbstractMessageBrokerConfiguration. simpValidator()
Return anValidator
instance for validating@Payload
method arguments.Uses of Validator in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server with parameters of type Validator Modifier and Type Method Description WebTestClient.ControllerSpec
WebTestClient.ControllerSpec. validator(Validator validator)
Configure a global Validator.Uses of Validator in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type Validator Modifier and Type Method Description StandaloneMockMvcBuilder
StandaloneMockMvcBuilder. setValidator(Validator validator)
Provide a customValidator
instead of the one created by default.Uses of Validator in org.springframework.validation
Subinterfaces of Validator in org.springframework.validation Modifier and Type Interface Description interface
SmartValidator
Extended variant of theValidator
interface, adding support for validation 'hints'.Methods in org.springframework.validation that return Validator Modifier and Type Method Description Validator
DataBinder. getValidator()
Return the primary Validator to apply after each binding step, if any.Methods in org.springframework.validation that return types with arguments of type Validator Modifier and Type Method Description List<Validator>
DataBinder. getValidators()
Return the Validators to apply after data binding.Methods in org.springframework.validation with parameters of type Validator Modifier and Type Method Description void
DataBinder. addValidators(Validator... validators)
Add Validators to apply after each binding step.static void
ValidationUtils. invokeValidator(Validator validator, Object target, Errors errors)
static void
ValidationUtils. invokeValidator(Validator validator, Object target, 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.Uses of Validator in org.springframework.validation.beanvalidation
Classes in org.springframework.validation.beanvalidation that implement Validator Modifier and Type Class Description class
CustomValidatorBean
Configurable bean class that exposes a specific JSR-303 Validator through its original interface as well as through the SpringValidator
interface.class
LocalValidatorFactoryBean
This is the central class forjavax.validation
(JSR-303) setup in a Spring application context: It bootstraps ajavax.validation.ValidationFactory
and exposes it through the SpringValidator
interface as well as through the JSR-303Validator
interface and theValidatorFactory
interface itself.class
OptionalValidatorFactoryBean
LocalValidatorFactoryBean
subclass that simply turnsValidator
calls into no-ops in case of no Bean Validation provider being available.class
SpringValidatorAdapter
Adapter that takes a JSR-303javax.validator.Validator
and exposes it as a SpringValidator
while also exposing the original JSR-303 Validator interface itself.Uses of Validator in org.springframework.web.bind.support
Methods in org.springframework.web.bind.support that return Validator Modifier and Type Method Description Validator
ConfigurableWebBindingInitializer. getValidator()
Return the Validator to apply after each binding step, if any.Methods in org.springframework.web.bind.support with parameters of type Validator Modifier and Type Method Description void
ConfigurableWebBindingInitializer. setValidator(Validator validator)
Set the Validator to apply after each binding step.Uses of Validator in org.springframework.web.reactive.config
Methods in org.springframework.web.reactive.config that return Validator Modifier and Type Method Description protected Validator
DelegatingWebFluxConfiguration. getValidator()
protected Validator
WebFluxConfigurationSupport. getValidator()
Override this method to provide a customValidator
.default Validator
WebFluxConfigurer. getValidator()
Provide a customValidator
.Validator
WebFluxConfigurerComposite. getValidator()
Validator
WebFluxConfigurationSupport. webFluxValidator()
Return a globalValidator
instance for example for validating@RequestBody
method arguments.Methods in org.springframework.web.reactive.config with parameters of type Validator Modifier and Type Method Description protected ConfigurableWebBindingInitializer
WebFluxConfigurationSupport. getConfigurableWebBindingInitializer(FormattingConversionService webFluxConversionService, Validator webFluxValidator)
Return theConfigurableWebBindingInitializer
to use for initializing allWebDataBinder
instances.RequestMappingHandlerAdapter
WebFluxConfigurationSupport. requestMappingHandlerAdapter(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, FormattingConversionService conversionService, Validator validator)
Uses of Validator in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return Validator Modifier and Type Method Description protected Validator
DelegatingWebMvcConfiguration. getValidator()
protected Validator
WebMvcConfigurationSupport. getValidator()
Override this method to provide a customValidator
.default Validator
WebMvcConfigurer. getValidator()
Provide a customValidator
instead of the one created by default.Validator
WebMvcConfigurerAdapter. getValidator()
Deprecated.Provide a customValidator
instead of the one created by default.Validator
WebMvcConfigurationSupport. mvcValidator()
Return a globalValidator
instance for example for validating@ModelAttribute
and@RequestBody
method arguments.Methods in org.springframework.web.servlet.config.annotation with parameters of type Validator Modifier and Type Method Description protected ConfigurableWebBindingInitializer
WebMvcConfigurationSupport. getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator)
Return theConfigurableWebBindingInitializer
to use for initializing allWebDataBinder
instances.RequestMappingHandlerAdapter
WebMvcConfigurationSupport. requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator)
Returns aRequestMappingHandlerAdapter
for processing requests through annotated controller methods.