public class ExtendedServletRequestDataBinder extends ServletRequestDataBinder
ServletRequestDataBinder
that adds URI template variables
to the values used for data binding.DEFAULT_FIELD_DEFAULT_PREFIX, DEFAULT_FIELD_MARKER_PREFIX
DEFAULT_AUTO_GROW_COLLECTION_LIMIT, DEFAULT_OBJECT_NAME, logger
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(MutablePropertyValues mpvs,
ServletRequest request)
Merge URI variables into the property values to use for data binding.
|
bind, closeNoCatch
bindMultipart, checkFieldDefaults, checkFieldMarkers, doBind, getEmptyValue, getFieldDefaultPrefix, getFieldMarkerPrefix, isBindEmptyMultipartFiles, setBindEmptyMultipartFiles, setFieldDefaultPrefix, setFieldMarkerPrefix
addCustomFormatter, addCustomFormatter, addCustomFormatter, addValidators, applyPropertyValues, bind, checkAllowedFields, checkRequiredFields, close, 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, setExtractOldValueForEditor, setIgnoreInvalidFields, setIgnoreUnknownFields, setMessageCodesResolver, setRequiredFields, setValidator, validate, validate
public ExtendedServletRequestDataBinder(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_NAME
public ExtendedServletRequestDataBinder(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_NAME
protected void addBindValues(MutablePropertyValues mpvs, ServletRequest request)
addBindValues
in class ServletRequestDataBinder
mpvs
- the property values that will be used for data bindingrequest
- the current request