Example usage for Java org.springframework.web.bind ServletRequestDataBinder fields, constructors, methods, implement or subclass
The text is from its open source code.
ServletRequestDataBinder(@Nullable Object target) Create a new ServletRequestDataBinder instance, with default object name. | |
ServletRequestDataBinder(@Nullable Object target, String objectName) Create a new ServletRequestDataBinder instance. |
void | addValidators(Validator... validators) Add Validators to apply after each binding step. |
void | bind(ServletRequest request) Bind the parameters of the given request to this binder's target, also binding multipart files in case of a multipart request. |
Map,?> | close() Close this DataBinder, which may result in throwing a BindException if it encountered any errors. |
void | closeNoCatch() Treats errors as fatal. |
BindingResult | getBindingResult() Return the BindingResult instance created by this DataBinder. |
Object | getTarget() Return the wrapped target object. |
void | registerCustomEditor(Class> requiredType, PropertyEditor propertyEditor) |
void | registerCustomEditor(@Nullable Class> requiredType, @Nullable String field, PropertyEditor propertyEditor) |
void | setAllowedFields(@Nullable String... allowedFields) Register fields that should be allowed for binding. |
void | setAutoGrowNestedPaths(boolean autoGrowNestedPaths) Set whether this binder should attempt to "auto-grow" a nested path that contains a null value. |
void | setBindEmptyMultipartFiles(boolean bindEmptyMultipartFiles) Set whether to bind empty MultipartFile parameters. |
void | setConversionService(@Nullable ConversionService conversionService) Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors. |
void | setDisallowedFields(@Nullable String... disallowedFields) Register fields that should not be allowed for binding. |
void | setFieldDefaultPrefix(@Nullable String fieldDefaultPrefix) Specify a prefix that can be used for parameters that indicate default value fields, having "prefix + field" as name. |
void | setFieldMarkerPrefix(@Nullable String fieldMarkerPrefix) Specify a prefix that can be used for parameters that mark potentially empty fields, having "prefix + field" as name. |
void | setIgnoreUnknownFields(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. |
void | setRequiredFields(@Nullable String... requiredFields) Register fields that are required for each binding process. |