Uses of Interface
org.springframework.validation.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
Modifier and TypeMethodDescriptionMessageMappingMessageHandler.getValidator()
Return the configured Validator instance.PayloadMethodArgumentResolver.getValidator()
Return the configured validator, if any.Modifier and TypeMethodDescriptionvoid
MessageMappingMessageHandler.setValidator
(Validator validator) Set the Validator instance used for validating@Payload
arguments.ModifierConstructorDescriptionPayloadMethodArgumentResolver
(List<? extends Decoder<?>> decoders, Validator validator, ReactiveAdapterRegistry registry, boolean useDefaultResolution) -
Uses of Validator in org.springframework.messaging.handler.annotation.support
Modifier and TypeMethodDescriptionvoid
DefaultMessageHandlerMethodFactory.setValidator
(Validator validator) Set the Validator instance used for validating@Payload
arguments.ModifierConstructorDescriptionPayloadMethodArgumentResolver
(MessageConverter messageConverter, Validator validator) PayloadMethodArgumentResolver
(MessageConverter messageConverter, Validator validator, boolean useDefaultResolution) -
Uses of Validator in org.springframework.messaging.simp.annotation.support
Modifier and TypeMethodDescriptionSimpAnnotationMethodMessageHandler.getValidator()
Return the configured Validator instance.Modifier and TypeMethodDescriptionvoid
SimpAnnotationMethodMessageHandler.setValidator
(Validator validator) Set the Validator instance used for validating@Payload
arguments. -
Uses of Validator in org.springframework.messaging.simp.config
Modifier 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
Modifier and TypeMethodDescriptionConfigure a global Validator. -
Uses of Validator in org.springframework.test.web.servlet.client
-
Uses of Validator in org.springframework.test.web.servlet.setup
Modifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setValidator
(Validator validator) Provide a customValidator
instead of the one created by default. -
Uses of Validator in org.springframework.validation
Modifier and TypeInterfaceDescriptioninterface
Extended variant of theValidator
interface, adding support for validation 'hints'.Modifier and TypeMethodDescriptionDataBinder.getValidator()
Return the primary Validator to apply after each binding step, if any.Modifier and TypeMethodDescriptionDataBinder.getValidators()
Return the Validators to apply after data binding.Modifier 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. -
Uses of Validator in org.springframework.validation.beanvalidation
Modifier 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
Modifier and TypeMethodDescriptionfinal Validator
ConfigurableWebBindingInitializer.getValidator()
Return the Validator to apply after each binding step, if any.Modifier 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
Modifier 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.Modifier 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, Validator validator) -
Uses of Validator in org.springframework.web.servlet.config.annotation
Modifier 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.Modifier 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.