Uses of Interface
org.springframework.context.MessageSourceResolvable
Package
Description
This package builds on the beans package to add support for
message sources and for the Observer design pattern, and the
ability for application objects to obtain resources using a
consistent API.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Provides data binding and validation functionality,
for usage in business and/or UI layers.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
Abstractions and support classes for method validation, independent of the
underlying validation library.
Support for result handling through view resolution.
Support classes for Spring's web MVC framework.
This package contains Spring's JSP standard tag library for JSP 2.0+.
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
-
Uses of MessageSourceResolvable in org.springframework.context
Modifier and TypeMethodDescriptionMessageSource.getMessage
(MessageSourceResolvable resolvable, Locale locale) Try to resolve the message using all the attributes contained within theMessageSourceResolvable
argument that was passed in. -
Uses of MessageSourceResolvable in org.springframework.context.support
Modifier and TypeClassDescriptionclass
Spring's default implementation of theMessageSourceResolvable
interface.Modifier and TypeMethodDescriptionprotected String
AbstractMessageSource.getDefaultMessage
(MessageSourceResolvable resolvable, Locale locale) Get a default message for the givenMessageSourceResolvable
.AbstractApplicationContext.getMessage
(MessageSourceResolvable resolvable, Locale locale) final String
AbstractMessageSource.getMessage
(MessageSourceResolvable resolvable, Locale locale) DelegatingMessageSource.getMessage
(MessageSourceResolvable resolvable, Locale locale) MessageSourceAccessor.getMessage
(MessageSourceResolvable resolvable) Retrieve the given MessageSourceResolvable (e.g.MessageSourceAccessor.getMessage
(MessageSourceResolvable resolvable, Locale locale) Retrieve the given MessageSourceResolvable (e.g.ModifierConstructorDescriptionCopy constructor: Create a new instance from another resolvable. -
Uses of MessageSourceResolvable in org.springframework.validation
Modifier and TypeClassDescriptionclass
Encapsulates a field error, that is, a reason for rejecting a specific field value.class
Encapsulates an object error, that is, a global reason for rejecting an object. -
Uses of MessageSourceResolvable in org.springframework.validation.beanvalidation
Modifier and TypeMethodDescriptionprotected MessageSourceResolvable
SpringValidatorAdapter.getResolvableField
(String objectName, String field) Build a resolvable wrapper for the specified field, allowing to resolve the field's name in aMessageSource
. -
Uses of MessageSourceResolvable in org.springframework.validation.method
Modifier and TypeMethodDescriptiondefault List<? extends MessageSourceResolvable>
MethodValidationResult.getAllErrors()
Return a single list with all errors from all validation results.ParameterValidationResult.getResolvableErrors()
List ofMessageSourceResolvable
representations adapted from the validation errors of the validation library.Modifier and TypeMethodDescription<T> T
ParameterValidationResult.unwrap
(MessageSourceResolvable error, Class<T> sourceType) Unwrap the source behind the given error.ModifierConstructorDescriptionParameterValidationResult
(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors) Deprecated, for removal: This API element is subject to removal in a future version.ParameterValidationResult
(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors, Object container, Integer index, Object key) Deprecated, for removal: This API element is subject to removal in a future version.ParameterValidationResult
(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors, Object container, Integer index, Object key, BiFunction<MessageSourceResolvable, Class<?>, Object> sourceLookup) Create aParameterValidationResult
.ParameterValidationResult
(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors, Object container, Integer index, Object key, BiFunction<MessageSourceResolvable, Class<?>, Object> sourceLookup) Create aParameterValidationResult
. -
Uses of MessageSourceResolvable in org.springframework.web.reactive.result.view
Modifier and TypeMethodDescriptionRequestContext.getMessage
(MessageSourceResolvable resolvable) Retrieve the given MessageSourceResolvable (e.g.RequestContext.getMessage
(MessageSourceResolvable resolvable, boolean htmlEscape) Retrieve the given MessageSourceResolvable (e.g. -
Uses of MessageSourceResolvable in org.springframework.web.servlet.support
Modifier and TypeMethodDescriptionRequestContext.getMessage
(MessageSourceResolvable resolvable) Retrieve the given MessageSourceResolvable (e.g.RequestContext.getMessage
(MessageSourceResolvable resolvable, boolean htmlEscape) Retrieve the given MessageSourceResolvable (e.g.RequestContext.getThemeMessage
(MessageSourceResolvable resolvable) Deprecated.as of 6.0, with no direct replacement -
Uses of MessageSourceResolvable in org.springframework.web.servlet.tags
Modifier and TypeMethodDescriptionvoid
MessageTag.setMessage
(MessageSourceResolvable message) Set the MessageSourceResolvable for this tag. -
Uses of MessageSourceResolvable in org.springframework.web.util
Modifier and TypeMethodDescriptionstatic <E extends MessageSourceResolvable>
Map<E,String> Shortcut forBindErrorUtils.resolve(List, MessageSource, Locale)
with an emptyMessageSource
that simply formats the default message, or first error code, also prepending the field name for field errors.static <E extends MessageSourceResolvable>
Map<E,String> BindErrorUtils.resolve
(List<E> errors, MessageSource messageSource, Locale locale) Resolve all errors through the givenMessageSource
.Modifier and TypeMethodDescriptionstatic String
BindErrorUtils.resolveAndJoin
(CharSequence delimiter, CharSequence prefix, CharSequence suffix, List<? extends MessageSourceResolvable> errors, MessageSource messageSource, Locale locale) Resolve all errors through the givenMessageSource
and join them.static String
BindErrorUtils.resolveAndJoin
(List<? extends MessageSourceResolvable> errors) Shortcut forBindErrorUtils.resolveAndJoin(List, MessageSource, Locale)
with an emptyMessageSource
that simply formats the default message, or first error code, also prepending the field name for field errors.static String
BindErrorUtils.resolveAndJoin
(List<? extends MessageSourceResolvable> errors, MessageSource messageSource, Locale locale) Shortcut forBindErrorUtils.resolveAndJoin(CharSequence, CharSequence, CharSequence, List, MessageSource, Locale)
with", and "
as delimiter, and an empty prefix and suffix.
ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object, BiFunction)