ServletRequestDataBinder that adds URI template variables
to the values used for data binding.Warning
Data binding can lead to security issues by exposing parts of the object graph that are not meant to be accessed or modified by external clients. Therefore the design and use of data binding should be considered carefully with regard to security. For more details, please refer to the dedicated sections on data binding for Spring Web MVC and Spring WebFlux in the reference manual.
ServletRequestDataBinder, HandlerMapping#URI_TEMPLATE_VARIABLES_ATTRIBUTE
| Modifier and Type | Class and Description |
|---|---|
| private static class | ExtendedServletRequestDataBinder.
Resolver of values that looks up URI path variables. |
| Access | Constructor and Description |
|---|---|
| public | ExtendedServletRequestDataBinder(Object
the target object to bind onto (or target)null
if the binder is just used to convert a plain parameter value)Create a new instance, with default object name. |
| public | ExtendedServletRequestDataBinder(Object
the target object to bind onto (or target, String null
if the binder is just used to convert a plain parameter value)the name of the target object objectName)Create a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addBindValues(MutablePropertyValues
the property values that will be used for data binding mpvs, ServletRequest the current request request)Overrides org. Merge URI variables into the property values to use for data binding. |
| protected ServletRequestDataBinder. | createValueResolver(ServletRequest request)
Overrides org. Allow subclasses to create the |
| private static Map |
| ExtendedServletRequestDataBinder | back to summary |
|---|---|
| public ExtendedServletRequestDataBinder(Object target) Create a new instance, with default object name.
| |
| ExtendedServletRequestDataBinder | back to summary |
|---|---|
| public ExtendedServletRequestDataBinder(Object target, String objectName) Create a new instance.
| |
| addBindValues | back to summary |
|---|---|
| protected void addBindValues(MutablePropertyValues mpvs, ServletRequest request) Overrides org. Merge URI variables into the property values to use for data binding.
| |
| createValueResolver | back to summary |
|---|---|
| protected ServletRequestDataBinder. Overrides org. Doc from org. Allow subclasses to create the
| |
| getUriVars | back to summary |
|---|---|
private static Map
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| ExtendedServletRequestValueResolver | back to summary |
|---|---|
| pack-priv ExtendedServletRequestValueResolver(ServletRequest request, WebDataBinder dataBinder) | |
| getRequestParameter | back to summary |
|---|---|
protected Object getRequestParameter(String name, Class<?> type)
| |
| initParameterNames | back to summary |
|---|---|
| protected Set Overrides org.
| |