Java org.springframework.web.bind ServletRequestDataBinder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.bind ServletRequestDataBinder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.bind ServletRequestDataBinder.

The text is from its open source code.

Subclass

org.springframework.web.bind.ServletRequestDataBinder has subclasses.
Click this link to see all its subclasses.

Constructor

ServletRequestDataBinder(@Nullable Object target)
Create a new ServletRequestDataBinder instance, with default object name.
ServletRequestDataBinder(@Nullable Object target, String objectName)
Create a new ServletRequestDataBinder instance.

Method

voidaddValidators(Validator... validators)
Add Validators to apply after each binding step.
voidbind(ServletRequest request)
Bind the parameters of the given request to this binder's target, also binding multipart files in case of a multipart request.
Mapclose()
Close this DataBinder, which may result in throwing a BindException if it encountered any errors.
voidcloseNoCatch()
Treats errors as fatal.
BindingResultgetBindingResult()
Return the BindingResult instance created by this DataBinder.
ObjectgetTarget()
Return the wrapped target object.
voidregisterCustomEditor(Class requiredType, PropertyEditor propertyEditor)
voidregisterCustomEditor(@Nullable Class requiredType, @Nullable String field, PropertyEditor propertyEditor)
voidsetAllowedFields(@Nullable String... allowedFields)
Register fields that should be allowed for binding.
voidsetAutoGrowNestedPaths(boolean autoGrowNestedPaths)
Set whether this binder should attempt to "auto-grow" a nested path that contains a null value.
voidsetBindEmptyMultipartFiles(boolean bindEmptyMultipartFiles)
Set whether to bind empty MultipartFile parameters.
voidsetConversionService(@Nullable ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.
voidsetDisallowedFields(@Nullable String... disallowedFields)
Register fields that should not be allowed for binding.
voidsetFieldDefaultPrefix(@Nullable String fieldDefaultPrefix)
Specify a prefix that can be used for parameters that indicate default value fields, having "prefix + field" as name.
voidsetFieldMarkerPrefix(@Nullable String fieldMarkerPrefix)
Specify a prefix that can be used for parameters that mark potentially empty fields, having "prefix + field" as name.
voidsetIgnoreUnknownFields(boolean ignoreUnknownFields)
Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.
voidsetRequiredFields(@Nullable String... requiredFields)
Register fields that are required for each binding process.