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
RestTestClient 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 TypeMethodDescriptionvoidMessageMappingMessageHandler.setValidator(@Nullable Validator validator) Set the Validator instance used for validating@Payloadarguments.Constructors in org.springframework.messaging.handler.annotation.reactive with parameters of type ValidatorModifierConstructorDescriptionPayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders, @Nullable Validator validator, @Nullable 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 TypeMethodDescriptionvoidDefaultMessageHandlerMethodFactory.setValidator(Validator validator) Set the Validator instance used for validating@Payloadarguments.Constructors in org.springframework.messaging.handler.annotation.support with parameters of type ValidatorModifierConstructorDescriptionPayloadMethodArgumentResolver(MessageConverter messageConverter, @Nullable Validator validator) PayloadMethodArgumentResolver(MessageConverter messageConverter, @Nullable 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 TypeMethodDescriptionvoidSimpAnnotationMethodMessageHandler.setValidator(@Nullable Validator validator) Set the Validator instance used for validating@Payloadarguments. -
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 ValidatorAbstractMessageBrokerConfiguration.simpValidator()Return anValidatorinstance for validating@Payloadmethod 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 customValidatorinstead of the one created by default. -
Uses of Validator in org.springframework.validation
Subinterfaces of Validator in org.springframework.validationModifier and TypeInterfaceDescriptioninterfaceExtended variant of theValidatorinterface, adding support for validation 'hints'.Methods in org.springframework.validation that return ValidatorModifier and TypeMethodDescriptionstatic <T> ValidatorValidator.forInstanceOf(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidatorthat checks whether the target object is an instance oftargetClass, applying the givendelegateto populateErrorsif it is.static <T> ValidatorValidator.forType(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidatorthat checks whether the target object's class is identical totargetClass, applying the givendelegateto populateErrorsif 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 TypeMethodDescriptionvoidDataBinder.addValidators(Validator... validators) Add Validators to apply after each binding step.static voidValidationUtils.invokeValidator(Validator validator, Object target, Errors errors) static voidValidationUtils.invokeValidator(Validator validator, Object target, Errors errors, Object @Nullable ... validationHints) voidDataBinder.replaceValidators(Validator... validators) Replace the Validators to apply after each binding step.voidDataBinder.setValidator(@Nullable Validator validator) Set the Validator to apply after each binding step.Method parameters in org.springframework.validation with type arguments of type ValidatorModifier and TypeMethodDescriptionvoidDataBinder.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 TypeClassDescriptionclassConfigurable bean class that exposes a specific JSR-303 Validator through its original interface as well as through the SpringValidatorinterface.classThis is the central class forjakarta.validation(JSR-303) setup in a Spring application context: It bootstraps ajakarta.validation.ValidationFactoryand exposes it through the SpringValidatorinterface as well as through the JSR-303Validatorinterface and theValidatorFactoryinterface itself.classLocalValidatorFactoryBeansubclass that simply turnsValidatorcalls into no-ops in case of no Bean Validation provider being available.classAdapter that takes a JSR-303javax.validator.Validatorand exposes it as a SpringValidatorwhile 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 TypeMethodDescriptionConfigurableWebBindingInitializer.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 voidConfigurableWebBindingInitializer.setValidator(@Nullable 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 TypeMethodDescriptionDelegatingWebFluxConfiguration.getValidator()WebFluxConfigurationSupport.getValidator()Override this method to provide a customValidator.WebFluxConfigurer.getValidator()Provide a customValidator.WebFluxConfigurerComposite.getValidator()WebFluxConfigurationSupport.webFluxValidator()Return a globalValidatorinstance for example for validating@RequestBodymethod arguments.Methods in org.springframework.web.reactive.config with parameters of type ValidatorModifier and TypeMethodDescriptionprotected ConfigurableWebBindingInitializerWebFluxConfigurationSupport.getConfigurableWebBindingInitializer(FormattingConversionService webFluxConversionService, Validator webFluxValidator) Return theConfigurableWebBindingInitializerto use for initializing allWebDataBinderinstances.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 TypeMethodDescriptionDelegatingWebMvcConfiguration.getValidator()WebMvcConfigurationSupport.getValidator()Override this method to provide a customValidator.WebMvcConfigurer.getValidator()Provide a customValidatorinstead of the one created by default.WebMvcConfigurationSupport.mvcValidator()Return a globalValidatorinstance for example for validating@ModelAttributeand@RequestBodymethod arguments.Methods in org.springframework.web.servlet.config.annotation with parameters of type ValidatorModifier and TypeMethodDescriptionprotected ConfigurableWebBindingInitializerWebMvcConfigurationSupport.getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator) Return theConfigurableWebBindingInitializerto use for initializing allWebDataBinderinstances.WebMvcConfigurationSupport.requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator) Returns aRequestMappingHandlerAdapterfor processing requests through annotated controller methods.