open class EscapedErrors : Errors
Errors wrapper that adds automatic HTML escaping to the wrapped instance, for convenient usage in HTML views. Can be retrieved easily via RequestContext's getErrors method.
Note that BindTag does not use this class to avoid unnecessary creation of ObjectError instances. It just escapes the messages and values that get copied into the respective BindStatus instance.
Author
Juergen Hoeller
Since
01.03.2003
See Also
org.springframework.web.servlet.support.RequestContext#getErrorsorg.springframework.web.servlet.tags.BindTag
EscapedErrors(source: Errors)
Create a new EscapedErrors instance for the given source instance. |
open fun addAllErrors(errors: Errors): Unit |
|
open fun getAllErrors(): MutableList<ObjectError> |
|
open fun getErrorCount(): Int |
|
open fun getFieldError(): FieldErroropen fun getFieldError(field: String): FieldError |
|
open fun getFieldErrorCount(): Intopen fun getFieldErrorCount(field: String): Int |
|
open fun getFieldErrors(): MutableList<FieldError>open fun getFieldErrors(field: String): MutableList<FieldError> |
|
open fun getFieldType(field: String): Class<*> |
|
open fun getFieldValue(field: String): Any |
|
open fun getGlobalError(): ObjectError |
|
open fun getGlobalErrorCount(): Int |
|
open fun getGlobalErrors(): MutableList<ObjectError> |
|
open fun getNestedPath(): String |
|
open fun getObjectName(): String |
|
open fun getSource(): Errors |
|
open fun hasErrors(): Boolean |
|
open fun hasFieldErrors(): Booleanopen fun hasFieldErrors(field: String): Boolean |
|
open fun hasGlobalErrors(): Boolean |
|
open fun popNestedPath(): Unit |
|
open fun pushNestedPath(subPath: String): Unit |
|
open fun reject(errorCode: String): Unitopen fun reject(errorCode: String, defaultMessage: String): Unitopen fun reject(errorCode: String, errorArgs: Array<Any>, defaultMessage: String): Unit |
|
open fun rejectValue(field: String, errorCode: String): Unitopen fun rejectValue(field: String, errorCode: String, defaultMessage: String): Unitopen fun rejectValue(field: String, errorCode: String, errorArgs: Array<Any>, defaultMessage: String): Unit |
|
open fun setNestedPath(nestedPath: String): Unit |