Model with controller-specific attributes.
Provides methods to create a WebExchangeDataBinder for a specific
target, command Object to apply data binding and validation to, or without a
target Object for simple type conversion from request values.
Container for the default model for the request.
| Modifier and Type | Class and Description |
|---|---|
| private static class | BindingContext.
Extended variant of |
| private static class | BindingContext.
Excludes Bean Validation if the method parameter has |
| Modifier and Type | Field and Description |
|---|---|
| private final WebBindingInitializer | |
| private boolean | |
| private final Model | |
| private final ReactiveAdapterRegistry |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BindingContext(WebBindingInitializer initializer)
Create an instance with the given initializer, which may be |
| public | BindingContext(WebBindingInitializer initializer, ReactiveAdapterRegistry registry)
Create an instance with the given initializer and |
| Modifier and Type | Method and Description |
|---|---|
| public WebExchangeDataBinder | Returns: the created data binderthe current exchange exchange, Object the object to create a data binder for target, String the name of the target object name)Create a binder with a target object. |
| public WebExchangeDataBinder | Returns: the created data binderthe current exchange exchange, String the name of the target object name)Shortcut method to create a binder without a target object. |
| public WebExchangeDataBinder | createDataBinder(ServerWebExchange exchange, Object target, String name, ResolvableType targetType)
Create a binder with a target object and a |
| public Model | |
| protected WebExchangeDataBinder | initDataBinder(WebExchangeDataBinder binder, ServerWebExchange exchange)
Initialize the data binder instance for the given exchange. |
| private boolean | |
| public void | setMethodValidationApplicable(boolean methodValidationApplicable)
Configure flag to signal whether validation will be applied to handler
method arguments, which is the case if Bean Validation is enabled in
Spring MVC, and method parameters have |
| public void | updateModel(ServerWebExchange
the current exchange exchange)Invoked before rendering to add |
| initializer | back to summary |
|---|---|
| private final WebBindingInitializer initializer
| |
| methodValidationApplicable | back to summary |
|---|---|
| private boolean methodValidationApplicable | |
| model | back to summary |
|---|---|
| private final Model model | |
| reactiveAdapterRegistry | back to summary |
|---|---|
| private final ReactiveAdapterRegistry reactiveAdapterRegistry | |
| BindingContext | back to summary |
|---|---|
| public BindingContext() Create an instance without an initializer. | |
| BindingContext | back to summary |
|---|---|
| public BindingContext(WebBindingInitializer initializer) Create an instance with the given initializer, which may be | |
| BindingContext | back to summary |
|---|---|
| public BindingContext(WebBindingInitializer initializer, ReactiveAdapterRegistry registry) Create an instance with the given initializer and
| |
| createDataBinder | back to summary |
|---|---|
| public WebExchangeDataBinder createDataBinder(ServerWebExchange exchange, Object target, String name) Create a binder with a target object.
| |
| createDataBinder | back to summary |
|---|---|
| public WebExchangeDataBinder createDataBinder(ServerWebExchange exchange, String name) Shortcut method to create a binder without a target object.
| |
| createDataBinder | back to summary |
|---|---|
| public WebExchangeDataBinder createDataBinder(ServerWebExchange exchange, Object target, String name, ResolvableType targetType) Create a binder with a target object and a
| |
| getModel | back to summary |
|---|---|
| public Model getModel() Return the default model. | |
| initDataBinder | back to summary |
|---|---|
| protected WebExchangeDataBinder initDataBinder(WebExchangeDataBinder binder, ServerWebExchange exchange) Initialize the data binder instance for the given exchange.
| |
| isBindingCandidate | back to summary |
|---|---|
| private boolean isBindingCandidate(String name, Object value) | |
| setMethodValidationApplicable | back to summary |
|---|---|
| public void setMethodValidationApplicable(boolean methodValidationApplicable) Configure flag to signal whether validation will be applied to handler
method arguments, which is the case if Bean Validation is enabled in
Spring MVC, and method parameters have
| |
| updateModel | back to summary |
|---|---|
| public void updateModel(ServerWebExchange exchange) Invoked before rendering to add
| |
WebExchangeDataBinder, adding path variables.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | getValuesToBind(ServerWebExchange
the current exchange exchange)Overrides org. Obtain the values for data binding. |
| ExtendedWebExchangeDataBinder | back to summary |
|---|---|
| public ExtendedWebExchangeDataBinder(Object target, String objectName) | |
| getValuesToBind | back to summary |
|---|---|
| public Mono Overrides org. Doc from org. Obtain the values for data binding. By default, this delegates to
| |
@Valid.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void |
| MethodValidationInitializer | back to summary |
|---|---|
| private MethodValidationInitializer() | |
| initBinder | back to summary |
|---|---|
| public static void initBinder(DataBinder binder, MethodParameter parameter) | |