org.springframework.web.bind |
Provides web-specific data binding functionality, including a
utility class for easy invocation of binding and validation.
|
Java Source File Name | Type | Comment |
BindInitializer.java | Interface | Callback that allows for initialization of a binder with
custom editors before kicking off the binding process.
This is effectively a way to factor binder initialization out into
a dedicated object, to be invoked through BindUtils. |
BindUtils.java | Class | Offers convenience methods for binding servlet request parameters
to objects, including optional validation. |
EscapedErrors.java | Class | Errors wrapper that adds automatic HTML escaping to the wrapped instance,
for convenient usage in HTML views. |
MissingServletRequestParameterException.java | Class | ServletRequestBindingException subclass that indicates a missing parameter. |
RequestUtils.java | Class | Parameter extraction methods, for an approach distinct from data binding,
in which parameters of specific types are required. |
ServletRequestBindingException.java | Class | Fatal binding exception, thrown when we want to
treat binding exceptions as unrecoverable. |
ServletRequestDataBinder.java | Class | Special DataBinder to perform data binding from servlet request parameters
to JavaBeans, including support for multipart files.
See the DataBinder/WebDataBinder superclasses for customization options,
which include specifying allowed/required fields, and registering custom
property editors.
Used by Spring web MVC's BaseCommandController and MultiActionController.
Note that BaseCommandController and its subclasses allow for easy customization
of the binder instances that they use through overriding initBinder .
Can also be used for manual data binding in custom web controllers:
for example, in a plain Controller implementation or in a MultiActionController
handler method. |
ServletRequestParameterPropertyValues.java | Class | PropertyValues implementation created from parameters in a ServletRequest. |
ServletRequestUtils.java | Class | Parameter extraction methods, for an approach distinct from data binding,
in which parameters of specific types are required. |
WebDataBinder.java | Class | Special
DataBinder for data binding from web request parameters
to JavaBean objects. |