Uses of Interface
org.springframework.validation.Validator
Packages that use Validator
Package
Description
Support classes for working with annotated message-handling methods with
non-blocking, reactive contracts.
Support classes for working with annotated message-handling methods.
Support classes for handling messages from simple messaging protocols
(like STOMP).
Configuration support for WebSocket messaging using higher level messaging protocols.
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Contains built-in
MockMvcBuilder
implementations.Provides data binding and validation functionality,
for usage in business and/or UI layers.
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.
Support classes for web data binding.
Spring WebFlux configuration infrastructure.
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 ValidatorModifier and TypeMethodDescriptionMessageMappingMessageHandler.getValidator()
Return the configured Validator instance.PayloadMethodArgumentResolver.getValidator()
Return the configured validator, if any.Methods in org.springframework.messaging.handler.annotation.reactive with parameters of type ValidatorModifier and TypeMethodDescriptionvoid
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 ValidatorModifierConstructorDescriptionPayloadMethodArgumentResolver
(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 ValidatorModifier and TypeMethodDescriptionvoid
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 ValidatorModifierConstructorDescriptionPayloadMethodArgumentResolver
(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 ValidatorModifier and TypeMethodDescriptionSimpAnnotationMethodMessageHandler.getValidator()
Return the configured Validator instance.Methods in org.springframework.messaging.simp.annotation.support with parameters of type ValidatorModifier and TypeMethodDescriptionvoid
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 ValidatorModifier and TypeMethodDescriptionAbstractMessageBrokerConfiguration.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 ValidatorModifier and TypeMethodDescriptionConfigure a global Validator. -
Uses of Validator in org.springframework.test.web.servlet.client
Methods in org.springframework.test.web.servlet.client with parameters of type Validator -
Uses of Validator in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type ValidatorModifier and TypeMethodDescriptionStandaloneMockMvcBuilder.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.validationModifier and TypeInterfaceDescriptioninterface
Extended variant of theValidator
interface, adding support for validation 'hints'.Methods in org.springframework.validation that return ValidatorModifier and TypeMethodDescriptionstatic <T> Validator
Validator.forInstanceOf
(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidator
that checks whether the target object is an instance oftargetClass
, applying the givendelegate
to populateErrors
if it is.static <T> Validator
Validator.forType
(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidator
that checks whether the target object's class is identical totargetClass
, applying the givendelegate
to populateErrors
if it is.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 ValidatorModifier and TypeMethodDescriptionDataBinder.getValidators()
Return the Validators to apply after data binding.DataBinder.getValidatorsToApply()
Return the Validators to apply after data binding.Methods in org.springframework.validation with parameters of type ValidatorModifier and TypeMethodDescriptionvoid
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.Method parameters in org.springframework.validation with type arguments of type ValidatorModifier and TypeMethodDescriptionvoid
DataBinder.setExcludedValidators
(Predicate<Validator> predicate) Configure a predicate to exclude validators. -
Uses of Validator in org.springframework.validation.beanvalidation
Classes in org.springframework.validation.beanvalidation that implement ValidatorModifier and TypeClassDescriptionclass
Configurable bean class that exposes a specific JSR-303 Validator through its original interface as well as through the SpringValidator
interface.class
This is the central class forjakarta.validation
(JSR-303) setup in a Spring application context: It bootstraps ajakarta.validation.ValidationFactory
and exposes it through the SpringValidator
interface as well as through the JSR-303Validator
interface and theValidatorFactory
interface itself.class
LocalValidatorFactoryBean
subclass that simply turnsValidator
calls into no-ops in case of no Bean Validation provider being available.class
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 ValidatorModifier and TypeMethodDescriptionfinal 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 ValidatorModifier and TypeMethodDescriptionfinal 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 ValidatorModifier and TypeMethodDescriptionprotected Validator
DelegatingWebFluxConfiguration.getValidator()
protected Validator
WebFluxConfigurationSupport.getValidator()
Override this method to provide a customValidator
.default Validator
WebFluxConfigurer.getValidator()
Provide a customValidator
.WebFluxConfigurerComposite.getValidator()
WebFluxConfigurationSupport.webFluxValidator()
Return a globalValidator
instance for example for validating@RequestBody
method arguments.Methods in org.springframework.web.reactive.config with parameters of type ValidatorModifier and TypeMethodDescriptionprotected ConfigurableWebBindingInitializer
WebFluxConfigurationSupport.getConfigurableWebBindingInitializer
(FormattingConversionService webFluxConversionService, Validator webFluxValidator) Return theConfigurableWebBindingInitializer
to use for initializing allWebDataBinder
instances.WebFluxConfigurationSupport.requestMappingHandlerAdapter
(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, FormattingConversionService conversionService, RequestedContentTypeResolver contentTypeResolver, Validator validator) -
Uses of Validator in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return ValidatorModifier and TypeMethodDescriptionprotected 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.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 ValidatorModifier and TypeMethodDescriptionprotected ConfigurableWebBindingInitializer
WebMvcConfigurationSupport.getConfigurableWebBindingInitializer
(FormattingConversionService mvcConversionService, Validator mvcValidator) Return theConfigurableWebBindingInitializer
to use for initializing allWebDataBinder
instances.WebMvcConfigurationSupport.requestMappingHandlerAdapter
(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator) Returns aRequestMappingHandlerAdapter
for processing requests through annotated controller methods.