public class ExtendedServletRequestDataBinder
extends org.springframework.web.bind.ServletRequestDataBinder
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| Constructor and Description |
|---|
ExtendedServletRequestDataBinder(Object target)
Create a new instance, with default object name.
|
ExtendedServletRequestDataBinder(Object target,
String objectName)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBindValues(org.springframework.beans.MutablePropertyValues mpvs,
ServletRequest request)
Merge URI variables into the property values to use for data binding.
|
bind, closeNoCatchadaptEmptyArrayIndices, bindMultipart, checkFieldDefaults, checkFieldMarkers, doBind, getEmptyValue, getEmptyValue, getFieldDefaultPrefix, getFieldMarkerPrefix, isBindEmptyMultipartFiles, setBindEmptyMultipartFiles, setFieldDefaultPrefix, setFieldMarkerPrefixaddCustomFormatter, addCustomFormatter, addCustomFormatter, addValidators, applyPropertyValues, bind, checkAllowedFields, checkRequiredFields, close, convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary, createBeanPropertyBindingResult, createDirectFieldBindingResult, findCustomEditor, getAllowedFields, getAutoGrowCollectionLimit, getBindingErrorProcessor, getBindingResult, getConversionService, getDisallowedFields, getInternalBindingResult, getObjectName, getPropertyAccessor, getPropertyEditorRegistry, getRequiredFields, getSimpleTypeConverter, getTarget, getTypeConverter, getValidator, getValidators, initBeanPropertyAccess, initDirectFieldAccess, isAllowed, isAutoGrowNestedPaths, isIgnoreInvalidFields, isIgnoreUnknownFields, registerCustomEditor, registerCustomEditor, replaceValidators, setAllowedFields, setAutoGrowCollectionLimit, setAutoGrowNestedPaths, setBindingErrorProcessor, setConversionService, setDisallowedFields, setIgnoreInvalidFields, setIgnoreUnknownFields, setMessageCodesResolver, setRequiredFields, setValidator, validate, validatepublic ExtendedServletRequestDataBinder(@Nullable
Object target)
target - the target object to bind onto (or null
if the binder is just used to convert a plain parameter value)DataBinder.DEFAULT_OBJECT_NAMEpublic ExtendedServletRequestDataBinder(@Nullable
Object target,
String objectName)
target - the target object to bind onto (or null
if the binder is just used to convert a plain parameter value)objectName - the name of the target objectDataBinder.DEFAULT_OBJECT_NAMEprotected void addBindValues(org.springframework.beans.MutablePropertyValues mpvs,
ServletRequest request)
addBindValues in class org.springframework.web.bind.ServletRequestDataBinder