| java.lang.Object org.springframework.web.bind.BindUtils
Method Summary | |
public static BindException | bind(ServletRequest request, Object object, String objectName) Bind the parameters from the given request to the given object. | public static BindException | bind(ServletRequest request, Object object, String objectName, BindInitializer initializer) Bind the parameters from the given request to the given object,
allowing for optional custom editors set in an bind initializer. | public static BindException | bindAndValidate(ServletRequest request, Object object, String objectName, Validator validator) Bind the parameters from the given request to the given object,
invoking the given validator. | public static BindException | bindAndValidate(ServletRequest request, Object object, String objectName, Validator validator, BindInitializer initializer) Bind the parameters from the given request to the given object,
invoking the given validator, and allowing for optional custom editors
set in an bind initializer. |
bind | public static BindException bind(ServletRequest request, Object object, String objectName)(Code) | | Bind the parameters from the given request to the given object.
Parameters: request - request containing the parameters Parameters: object - object to bind the parameters to Parameters: objectName - name of the bind object the binder used (can be treated as BindException or Errors instance) |
bind | public static BindException bind(ServletRequest request, Object object, String objectName, BindInitializer initializer) throws ServletException(Code) | | Bind the parameters from the given request to the given object,
allowing for optional custom editors set in an bind initializer.
Parameters: request - request containing the parameters Parameters: object - object to bind the parameters to Parameters: objectName - name of the bind object Parameters: initializer - implementation of the BindInitializer interfacewhich will be able to set custom editors the binder used (can be treated as BindException or Errors instance) throws: ServletException - if thrown by the BindInitializer |
bindAndValidate | public static BindException bindAndValidate(ServletRequest request, Object object, String objectName, Validator validator)(Code) | | Bind the parameters from the given request to the given object,
invoking the given validator.
Parameters: request - request containing the parameters Parameters: object - object to bind the parameters to Parameters: objectName - name of the bind object Parameters: validator - validator to be invoked, or null if no validation the binder used (can be treated as Errors instance) |
bindAndValidate | public static BindException bindAndValidate(ServletRequest request, Object object, String objectName, Validator validator, BindInitializer initializer) throws ServletException(Code) | | Bind the parameters from the given request to the given object,
invoking the given validator, and allowing for optional custom editors
set in an bind initializer.
Parameters: request - request containing the parameters Parameters: object - object to bind the parameters to Parameters: objectName - name of the bind object Parameters: validator - validator to be invoked, or null if no validation Parameters: initializer - implementation of the BindInitializer interfacewhich will be able to set custom editors the binder used (can be treated as Errors instance) throws: ServletException - if thrown by the BindInitializer |
|
|