Uses of Interface
org.springframework.context.MessageSourceResolvable
Packages that use 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 classes for annotation-based handler method processing.
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
Methods in org.springframework.context with parameters of type MessageSourceResolvableModifier 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
Classes in org.springframework.context.support that implement MessageSourceResolvableModifier and TypeClassDescriptionclass
Spring's default implementation of theMessageSourceResolvable
interface.Methods in org.springframework.context.support with parameters of type MessageSourceResolvableModifier 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 (for example, an ObjectError instance) in the default Locale.MessageSourceAccessor.getMessage
(MessageSourceResolvable resolvable, Locale locale) Retrieve the given MessageSourceResolvable (for example, an ObjectError instance) in the given Locale.Constructors in org.springframework.context.support with parameters of type MessageSourceResolvableModifierConstructorDescriptionCopy constructor: Create a new instance from another resolvable. -
Uses of MessageSourceResolvable in org.springframework.validation
Classes in org.springframework.validation that implement MessageSourceResolvableModifier 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
Methods in org.springframework.validation.beanvalidation that return MessageSourceResolvableModifier 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
Methods in org.springframework.validation.method that return types with arguments of type MessageSourceResolvableModifier and TypeMethodDescriptiondefault List<? extends MessageSourceResolvable>
MethodValidationResult.getAllErrors()
Return a single list with all errors from all validation results.MethodValidationException.getCrossParameterValidationResults()
MethodValidationResult.getCrossParameterValidationResults()
Return errors from cross-parameter validation.ParameterValidationResult.getResolvableErrors()
List ofMessageSourceResolvable
representations adapted from the validation errors of the validation library.Methods in org.springframework.validation.method with parameters of type MessageSourceResolvableModifier and TypeMethodDescription<T> T
ParameterValidationResult.unwrap
(MessageSourceResolvable error, Class<T> sourceType) Unwrap the source behind the given error.Constructor parameters in org.springframework.validation.method with type arguments of type MessageSourceResolvableModifierConstructorDescriptionParameterValidationResult
(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.method.annotation
Methods in org.springframework.web.method.annotation that return types with arguments of type MessageSourceResolvableModifier and TypeMethodDescriptionHandlerMethodValidationException.getCrossParameterValidationResults()
-
Uses of MessageSourceResolvable in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view with parameters of type MessageSourceResolvableModifier and TypeMethodDescriptionRequestContext.getMessage
(MessageSourceResolvable resolvable) Retrieve the given MessageSourceResolvable (for example, an ObjectError instance), using the "defaultHtmlEscape" setting.RequestContext.getMessage
(MessageSourceResolvable resolvable, boolean htmlEscape) Retrieve the given MessageSourceResolvable (for example, an ObjectError instance). -
Uses of MessageSourceResolvable in org.springframework.web.servlet.support
Methods in org.springframework.web.servlet.support with parameters of type MessageSourceResolvableModifier and TypeMethodDescriptionRequestContext.getMessage
(MessageSourceResolvable resolvable) Retrieve the given MessageSourceResolvable (for example, an ObjectError instance), using the "defaultHtmlEscape" setting.RequestContext.getMessage
(MessageSourceResolvable resolvable, boolean htmlEscape) Retrieve the given MessageSourceResolvable (for example, an ObjectError instance).RequestContext.getThemeMessage
(MessageSourceResolvable resolvable) Deprecated.as of 6.0, with no direct replacement -
Uses of MessageSourceResolvable in org.springframework.web.servlet.tags
Methods in org.springframework.web.servlet.tags with parameters of type MessageSourceResolvableModifier and TypeMethodDescriptionvoid
MessageTag.setMessage
(MessageSourceResolvable message) Set the MessageSourceResolvable for this tag. -
Uses of MessageSourceResolvable in org.springframework.web.util
Methods in org.springframework.web.util with type parameters of type MessageSourceResolvableModifier 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
.Method parameters in org.springframework.web.util with type arguments of type MessageSourceResolvableModifier 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)