MessageSourceResolvables, and
optionally join them.
| Modifier and Type | Class and Description |
|---|---|
| private static class | BindErrorUtils.
|
| Modifier and Type | Field and Description |
|---|---|
| private static final MessageSource |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E extends MessageSourceResolvable> Map | resolve(List<E> errors)
Shortcut for |
| public static <E extends MessageSourceResolvable> Map | Returns: map with resolved errors as values, in the order of the input listthe errors to resolve errors, MessageSource the messageSource, Locale MessageSource to resolve withthe locale to resolve with an empty locale)MessageSourceResolve all errors through the given |
| public static String | resolveAndJoin(List<? extends MessageSourceResolvable> errors)
Shortcut for |
| public static String | resolveAndJoin(List<? extends MessageSourceResolvable> errors, MessageSource messageSource, Locale locale)
Shortcut for |
| public static String | Returns: the resolved errors formatted as a stringthe delimiter to use between each error delimiter, CharSequence characters to insert at the beginning prefix, CharSequence characters to insert at the end suffix, List<? extends MessageSourceResolvable> the errors to resolve and join errors, MessageSource the messageSource, Locale MessageSource to resolve withthe locale to resolve with locale)Resolve all errors through the given |
| defaultMessageSource | back to summary |
|---|---|
| private static final MessageSource defaultMessageSource | |
| BindErrorUtils | back to summary |
|---|---|
| public BindErrorUtils() | |
| resolve | back to summary |
|---|---|
| public static <E extends MessageSourceResolvable> Map Shortcut for | |
| resolve | back to summary |
|---|---|
| public static <E extends MessageSourceResolvable> Map Resolve all errors through the given
| |
| resolveAndJoin | back to summary |
|---|---|
| public static String resolveAndJoin(List<? extends MessageSourceResolvable> errors) Shortcut for | |
| resolveAndJoin | back to summary |
|---|---|
| public static String resolveAndJoin(List<? extends MessageSourceResolvable> errors, MessageSource messageSource, Locale locale) Shortcut for | |
| resolveAndJoin | back to summary |
|---|---|
| public static String resolveAndJoin(CharSequence delimiter, CharSequence prefix, CharSequence suffix, List<? extends MessageSourceResolvable> errors, MessageSource messageSource, Locale locale) Resolve all errors through the given
| |
MessageSource for default error formatting.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected String | getDefaultMessage(MessageSourceResolvable
the value object to resolve a default message for resolvable, Locale the current locale locale)Overrides org. Get a default message for the given |
| MethodArgumentErrorMessageSource | back to summary |
|---|---|
| pack-priv MethodArgumentErrorMessageSource() | |
| getDefaultMessage | back to summary |
|---|---|
| protected String getDefaultMessage(MessageSourceResolvable resolvable, Locale locale) Overrides org. Doc from org. Get a default message for the given This implementation fully renders the default message if available,
or just returns the plain default message
| |