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 via
WebTestClient . |
org.springframework.test.web.servlet.client |
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling. |
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) 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.
|
Modifier and Type | Method and Description |
---|---|
Validator |
PayloadMethodArgumentResolver.getValidator()
Return the configured validator, if any.
|
Validator |
MessageMappingMessageHandler.getValidator()
Return the configured Validator instance.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageMappingMessageHandler.setValidator(Validator validator)
Set the Validator instance used for validating
@Payload arguments. |
Constructor and Description |
---|
PayloadMethodArgumentResolver(List<? extends Decoder<?>> decoders,
Validator validator,
ReactiveAdapterRegistry registry,
boolean useDefaultResolution) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultMessageHandlerMethodFactory.setValidator(Validator validator)
Set the Validator instance used for validating
@Payload arguments. |
Constructor and 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)
|
Modifier and Type | Method and Description |
---|---|
Validator |
SimpAnnotationMethodMessageHandler.getValidator()
Return the configured Validator instance.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpAnnotationMethodMessageHandler.setValidator(Validator validator)
Set the Validator instance used for validating
@Payload arguments. |
Modifier and Type | Method and Description |
---|---|
Validator |
AbstractMessageBrokerConfiguration.getValidator()
Override this method to provide a custom
Validator . |
protected Validator |
AbstractMessageBrokerConfiguration.simpValidator()
Return an
Validator instance for
validating @Payload method arguments. |
Modifier and Type | Method and Description |
---|---|
WebTestClient.ControllerSpec |
WebTestClient.ControllerSpec.validator(Validator validator)
Configure a global Validator.
|
Modifier and Type | Method and Description |
---|---|
MockMvcWebTestClient.ControllerSpec |
MockMvcWebTestClient.ControllerSpec.validator(Validator validator)
Provide a custom
Validator . |
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 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.
|
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 |
OptionalValidatorFactoryBean
LocalValidatorFactoryBean subclass that simply turns
Validator calls into no-ops
in case of no Bean Validation provider being available. |
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 |
---|---|
default Validator |
WebFluxConfigurer.getValidator()
Provide a custom
Validator . |
protected Validator |
WebFluxConfigurationSupport.getValidator()
Override this method to provide a custom
Validator . |
Validator |
WebFluxConfigurerComposite.getValidator() |
protected Validator |
DelegatingWebFluxConfiguration.getValidator() |
Validator |
WebFluxConfigurationSupport.webFluxValidator()
Return a global
Validator instance for example for validating
@RequestBody method arguments. |
Modifier and Type | Method and Description |
---|---|
protected ConfigurableWebBindingInitializer |
WebFluxConfigurationSupport.getConfigurableWebBindingInitializer(FormattingConversionService webFluxConversionService,
Validator webFluxValidator)
Return the
ConfigurableWebBindingInitializer to use for
initializing all WebDataBinder instances. |
RequestMappingHandlerAdapter |
WebFluxConfigurationSupport.requestMappingHandlerAdapter(ReactiveAdapterRegistry reactiveAdapterRegistry,
ServerCodecConfigurer serverCodecConfigurer,
FormattingConversionService conversionService,
Validator validator) |
Modifier and Type | Method and Description |
---|---|
protected Validator |
WebMvcConfigurationSupport.getValidator()
Override this method to provide a custom
Validator . |
protected Validator |
DelegatingWebMvcConfiguration.getValidator() |
Validator |
WebMvcConfigurerAdapter.getValidator()
Deprecated.
Provide a custom
Validator instead of the one created by default. |
default Validator |
WebMvcConfigurer.getValidator()
Provide a custom
Validator instead of the one created by default. |
Validator |
WebMvcConfigurationSupport.mvcValidator()
Return a global
Validator instance for example for validating
@ModelAttribute and @RequestBody method arguments. |
Modifier and Type | Method and Description |
---|---|
protected ConfigurableWebBindingInitializer |
WebMvcConfigurationSupport.getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService,
Validator mvcValidator)
Return the
ConfigurableWebBindingInitializer to use for
initializing all WebDataBinder instances. |
RequestMappingHandlerAdapter |
WebMvcConfigurationSupport.requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager,
FormattingConversionService conversionService,
Validator validator)
Returns a
RequestMappingHandlerAdapter for processing requests
through annotated controller methods. |