Package | Description |
---|---|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.validation.beanvalidation |
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator 4.0) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.portlet.mvc |
Standard controller implementations for the portlet MVC framework that
comes with Spring.
|
org.springframework.web.servlet.mvc |
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
|
org.springframework.web.servlet.support |
Support classes for Spring's web MVC framework.
|
org.springframework.web.servlet.tags |
Spring's JSP standard tag library for JSP 2.0+.
|
org.springframework.web.struts |
Support classes for integrating a Struts web tier with a Spring middle
tier which is typically hosted in a Spring root WebApplicationContext.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BindingResult
General interface that represents binding results.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBindingResult
Abstract implementation of the
BindingResult interface and
its super-interface Errors . |
class |
AbstractErrors
Abstract implementation of the
Errors interface. |
class |
AbstractPropertyBindingResult
Abstract base class for
BindingResult implementations that work with
Spring's PropertyAccessor mechanism. |
class |
BeanPropertyBindingResult
Default implementation of the
Errors and BindingResult
interfaces, for the registration and evaluation of binding errors on
JavaBean objects. |
class |
BindException
Thrown when binding errors are considered fatal.
|
class |
DirectFieldBindingResult
Special implementation of the Errors and BindingResult interfaces,
supporting registration and evaluation of binding errors on value objects.
|
class |
MapBindingResult
Map-based implementation of the BindingResult interface,
supporting registration and evaluation of binding errors on
Map attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractBindingResult.addAllErrors(Errors errors) |
void |
Errors.addAllErrors(Errors errors)
Add all errors from the given
Errors instance to this
Errors instance. |
void |
BindException.addAllErrors(Errors errors) |
static void |
ValidationUtils.invokeValidator(Validator validator,
Object obj,
Errors errors)
|
static void |
ValidationUtils.invokeValidator(Validator validator,
Object obj,
Errors errors,
Object... validationHints)
|
static void |
ValidationUtils.rejectIfEmpty(Errors errors,
String field,
String errorCode)
Reject the given field with the given error code if the value is empty.
|
static void |
ValidationUtils.rejectIfEmpty(Errors errors,
String field,
String errorCode,
Object[] errorArgs)
Reject the given field with the given error codea nd error arguments
if the value is empty.
|
static void |
ValidationUtils.rejectIfEmpty(Errors errors,
String field,
String errorCode,
Object[] errorArgs,
String defaultMessage)
Reject the given field with the given error code, error arguments
and default message if the value is empty.
|
static void |
ValidationUtils.rejectIfEmpty(Errors errors,
String field,
String errorCode,
String defaultMessage)
Reject the given field with the given error code and default message
if the value is empty.
|
static void |
ValidationUtils.rejectIfEmptyOrWhitespace(Errors errors,
String field,
String errorCode)
Reject the given field with the given error code if the value is empty
or just contains whitespace.
|
static void |
ValidationUtils.rejectIfEmptyOrWhitespace(Errors errors,
String field,
String errorCode,
Object[] errorArgs)
Reject the given field with the given error code and error arguments
if the value is empty or just contains whitespace.
|
static void |
ValidationUtils.rejectIfEmptyOrWhitespace(Errors errors,
String field,
String errorCode,
Object[] errorArgs,
String defaultMessage)
Reject the given field with the given error code, error arguments
and default message if the value is empty or just contains whitespace.
|
static void |
ValidationUtils.rejectIfEmptyOrWhitespace(Errors errors,
String field,
String errorCode,
String defaultMessage)
Reject the given field with the given error code and default message
if the value is empty or just contains whitespace.
|
void |
Validator.validate(Object target,
Errors errors)
Validate the supplied
target object, which must be
of a Class for which the Validator.supports(Class) method
typically has (or would) return true . |
void |
SmartValidator.validate(Object target,
Errors errors,
Object... validationHints)
Validate the supplied
target object, which must be of a type of Class
for which the Validator.supports(Class) method typically returns true . |
Modifier and Type | Method and Description |
---|---|
protected void |
SpringValidatorAdapter.processConstraintViolations(Set<javax.validation.ConstraintViolation<Object>> violations,
Errors errors)
Process the given JSR-303 ConstraintViolations, adding corresponding errors to
the provided Spring
Errors object. |
void |
SpringValidatorAdapter.validate(Object target,
Errors errors) |
void |
SpringValidatorAdapter.validate(Object target,
Errors errors,
Object... validationHints) |
Modifier and Type | Class and Description |
---|---|
class |
EscapedErrors
Errors wrapper that adds automatic HTML escaping to the wrapped instance,
for convenient usage in HTML views.
|
Modifier and Type | Method and Description |
---|---|
Errors |
EscapedErrors.getSource() |
Modifier and Type | Method and Description |
---|---|
void |
EscapedErrors.addAllErrors(Errors errors) |
Constructor and Description |
---|
EscapedErrors(Errors source)
Create a new EscapedErrors instance for the given source instance.
|
Modifier and Type | Method and Description |
---|---|
protected int |
AbstractWizardFormController.getTargetPage(javax.portlet.PortletRequest request,
Object command,
Errors errors,
int currentPage)
Deprecated.
Return the target page specified in the request.
|
protected void |
AbstractWizardFormController.postProcessPage(javax.portlet.ActionRequest request,
Object command,
Errors errors,
int page)
Deprecated.
Post-process the given page after binding and validation, potentially
updating its command object.
|
protected Map |
SimpleFormController.referenceData(javax.portlet.PortletRequest request,
Object command,
Errors errors)
Deprecated.
Create a reference data map for the given request and command,
consisting of bean name/bean instance pairs as expected by ModelAndView.
|
protected Map |
AbstractFormController.referenceData(javax.portlet.PortletRequest request,
Object command,
Errors errors)
Deprecated.
Create a reference data map for the given request, consisting of
bean name/bean instance pairs as expected by ModelAndView.
|
protected Map |
AbstractWizardFormController.referenceData(javax.portlet.PortletRequest request,
Object command,
Errors errors)
Deprecated.
Calls page-specific referenceData method.
|
protected Map |
AbstractWizardFormController.referenceData(javax.portlet.PortletRequest request,
Object command,
Errors errors,
int page)
Deprecated.
Create a reference data map for the given request, consisting of
bean name/bean instance pairs as expected by ModelAndView.
|
protected void |
AbstractWizardFormController.validatePage(Object command,
Errors errors,
int page)
Deprecated.
Template method for custom validation logic for individual pages.
|
protected void |
AbstractWizardFormController.validatePage(Object command,
Errors errors,
int page,
boolean finish)
Deprecated.
Template method for custom validation logic for individual pages.
|
Modifier and Type | Method and Description |
---|---|
protected int |
AbstractWizardFormController.getTargetPage(javax.servlet.http.HttpServletRequest request,
Object command,
Errors errors,
int currentPage)
Deprecated.
Return the target page specified in the request.
|
protected void |
AbstractWizardFormController.postProcessPage(javax.servlet.http.HttpServletRequest request,
Object command,
Errors errors,
int page)
Deprecated.
Post-process the given page after binding and validation, potentially
updating its command object.
|
protected Map |
SimpleFormController.referenceData(javax.servlet.http.HttpServletRequest request,
Object command,
Errors errors)
Deprecated.
Create a reference data map for the given request and command,
consisting of bean name/bean instance pairs as expected by ModelAndView.
|
protected Map |
AbstractFormController.referenceData(javax.servlet.http.HttpServletRequest request,
Object command,
Errors errors)
Deprecated.
Create a reference data map for the given request, consisting of
bean name/bean instance pairs as expected by ModelAndView.
|
protected Map |
AbstractWizardFormController.referenceData(javax.servlet.http.HttpServletRequest request,
Object command,
Errors errors)
Deprecated.
Calls page-specific referenceData method.
|
protected Map |
AbstractWizardFormController.referenceData(javax.servlet.http.HttpServletRequest request,
Object command,
Errors errors,
int page)
Deprecated.
Create a reference data map for the given request, consisting of
bean name/bean instance pairs as expected by ModelAndView.
|
protected void |
AbstractWizardFormController.validatePage(Object command,
Errors errors,
int page)
Deprecated.
Template method for custom validation logic for individual pages.
|
protected void |
AbstractWizardFormController.validatePage(Object command,
Errors errors,
int page,
boolean finish)
Deprecated.
Template method for custom validation logic for individual pages.
|
Modifier and Type | Method and Description |
---|---|
Errors |
BindStatus.getErrors()
Return the Errors instance (typically a BindingResult) that this
bind status is currently associated with.
|
Errors |
RequestContext.getErrors(String name)
Retrieve the Errors instance for the given bind object, using the "defaultHtmlEscape" setting.
|
Errors |
RequestContext.getErrors(String name,
boolean htmlEscape)
Retrieve the Errors instance for the given bind object.
|
Modifier and Type | Method and Description |
---|---|
Errors |
BindTag.getErrors()
Retrieve the Errors instance that this tag is currently bound to.
|
Errors |
BindErrorsTag.getErrors()
Retrieve the Errors instance that this tag is currently bound to.
|
Modifier and Type | Method and Description |
---|---|
void |
SpringBindingActionForm.expose(Errors errors,
javax.servlet.http.HttpServletRequest request)
Deprecated.
Set the Errors object that this SpringBindingActionForm is supposed
to wrap.
|
Copyright © 2015. All rights reserved.