Package | Description |
---|---|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.bind.support |
Support classes for web data binding.
|
org.springframework.web.method.annotation |
Support classes for annotation-based handler method processing.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Class and Description |
---|---|
class |
ServletRequestDataBinder
Special
DataBinder to perform data binding
from servlet request parameters to JavaBeans, including support for multipart files. |
Modifier and Type | Class and Description |
---|---|
class |
WebExchangeDataBinder
Specialized
DataBinder to perform data
binding from URL query params or form data in the request data to Java objects. |
class |
WebRequestDataBinder
Special
DataBinder to perform data binding
from web request parameters to JavaBeans, including support for multipart files. |
Modifier and Type | Method and Description |
---|---|
WebDataBinder |
WebDataBinderFactory.createBinder(NativeWebRequest webRequest,
Object target,
String objectName)
Create a
WebDataBinder for the given object. |
WebDataBinder |
DefaultDataBinderFactory.createBinder(NativeWebRequest webRequest,
Object target,
String objectName)
Create a new
WebDataBinder for the given target object and
initialize it through a WebBindingInitializer . |
protected WebDataBinder |
DefaultDataBinderFactory.createBinderInstance(Object target,
String objectName,
NativeWebRequest webRequest)
Extension point to create the WebDataBinder instance.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurableWebBindingInitializer.initBinder(WebDataBinder binder) |
void |
WebBindingInitializer.initBinder(WebDataBinder binder)
Initialize the given DataBinder.
|
protected void |
DefaultDataBinderFactory.initBinder(WebDataBinder dataBinder,
NativeWebRequest webRequest)
Extension point to further initialize the created data binder instance
(e.g.
|
default void |
WebBindingInitializer.initBinder(WebDataBinder binder,
WebRequest request)
Deprecated.
as of 5.0 in favor of
WebBindingInitializer.initBinder(WebDataBinder) |
Modifier and Type | Method and Description |
---|---|
protected void |
ModelAttributeMethodProcessor.bindRequestParameters(WebDataBinder binder,
NativeWebRequest request)
Extension point to bind the request to the target object.
|
void |
InitBinderDataBinderFactory.initBinder(WebDataBinder dataBinder,
NativeWebRequest request)
Initialize a WebDataBinder with
@InitBinder methods. |
protected boolean |
InitBinderDataBinderFactory.isBinderMethodApplicable(HandlerMethod initBinderMethod,
WebDataBinder dataBinder)
Determine whether the given
@InitBinder method should be used
to initialize the given WebDataBinder instance. |
protected boolean |
ModelAttributeMethodProcessor.isBindExceptionRequired(WebDataBinder binder,
MethodParameter parameter)
Whether to raise a fatal bind exception on validation errors.
|
protected void |
ModelAttributeMethodProcessor.validateIfApplicable(WebDataBinder binder,
MethodParameter parameter)
Validate the model attribute if applicable.
|
protected void |
ModelAttributeMethodProcessor.validateValueIfApplicable(WebDataBinder binder,
MethodParameter parameter,
Class<?> targetType,
String fieldName,
Object value)
Validate the specified candidate value if applicable.
|
Modifier and Type | Class and Description |
---|---|
class |
ExtendedServletRequestDataBinder
Subclass of
ServletRequestDataBinder that adds URI template variables
to the values used for data binding. |
Modifier and Type | Method and Description |
---|---|
protected void |
ServletModelAttributeMethodProcessor.bindRequestParameters(WebDataBinder binder,
NativeWebRequest request)
This implementation downcasts
WebDataBinder to
ServletRequestDataBinder before binding. |
protected boolean |
AbstractMessageConverterMethodArgumentResolver.isBindExceptionRequired(WebDataBinder binder,
MethodParameter parameter)
Whether to raise a fatal bind exception on validation errors.
|
protected void |
AbstractMessageConverterMethodArgumentResolver.validateIfApplicable(WebDataBinder binder,
MethodParameter parameter)
Validate the binding target if applicable.
|