Uses of Interface
org.springframework.web.method.support.HandlerMethodArgumentResolver
Packages that use HandlerMethodArgumentResolver
Package
Description
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Contains built-in
MockMvcBuilder
implementations.Support classes for annotation-based handler method processing.
Generic support classes for handler method processing.
Annotation-based setup for Spring MVC.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.-
Uses of HandlerMethodArgumentResolver in org.springframework.test.web.servlet.client
Methods in org.springframework.test.web.servlet.client with parameters of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.customArgumentResolvers
(HandlerMethodArgumentResolver... argumentResolvers) Provide custom argument resolvers. -
Uses of HandlerMethodArgumentResolver in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setCustomArgumentResolvers
(HandlerMethodArgumentResolver... argumentResolvers) Provide custom resolvers for controller method arguments. -
Uses of HandlerMethodArgumentResolver in org.springframework.web.method.annotation
Classes in org.springframework.web.method.annotation that implement HandlerMethodArgumentResolverModifier and TypeClassDescriptionclass
A base abstract class to resolve method arguments annotated with@CookieValue
.class
Abstract base class for resolving method arguments from a named value.class
An abstract base class adapting aWebArgumentResolver
to theHandlerMethodArgumentResolver
contract.class
ResolvesErrors
method arguments.class
Resolves method arguments annotated with@Value
.class
class
Resolve@ModelAttribute
annotated method arguments and handle return values from@ModelAttribute
annotated methods.class
class
ResolvesMap
method arguments annotated with@RequestHeader
.class
Resolves method arguments annotated with@RequestHeader
except forMap
arguments.class
ResolvesMap
method arguments annotated with an @RequestParam
where the annotation does not specify a request parameter name.class
Resolves method arguments annotated with @RequestParam
, arguments of typeMultipartFile
in conjunction with Spring'sMultipartResolver
abstraction, and arguments of typejakarta.servlet.http.Part
in conjunction with Servlet multipart requests.class
Resolves aSessionStatus
argument by obtaining it from theModelAndViewContainer
. -
Uses of HandlerMethodArgumentResolver in org.springframework.web.method.support
Classes in org.springframework.web.method.support that implement HandlerMethodArgumentResolverModifier and TypeClassDescriptionclass
Resolves method parameters by delegating to a list of registeredHandlerMethodArgumentResolvers
.Methods in org.springframework.web.method.support that return HandlerMethodArgumentResolverModifier and TypeMethodDescriptionHandlerMethodArgumentResolverComposite.getArgumentResolver
(MethodParameter parameter) Find a registeredHandlerMethodArgumentResolver
that supports the given method parameter.Methods in org.springframework.web.method.support that return types with arguments of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionHandlerMethodArgumentResolverComposite.getResolvers()
Return a read-only list with the contained resolvers, or an empty list.Methods in org.springframework.web.method.support with parameters of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionHandlerMethodArgumentResolverComposite.addResolver
(HandlerMethodArgumentResolver resolver) Add the givenHandlerMethodArgumentResolver
.HandlerMethodArgumentResolverComposite.addResolvers
(HandlerMethodArgumentResolver... resolvers) Add the givenHandlerMethodArgumentResolvers
.Method parameters in org.springframework.web.method.support with type arguments of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionHandlerMethodArgumentResolverComposite.addResolvers
(List<? extends HandlerMethodArgumentResolver> resolvers) Add the givenHandlerMethodArgumentResolvers
. -
Uses of HandlerMethodArgumentResolver in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return types with arguments of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionprotected final List<HandlerMethodArgumentResolver>
WebMvcConfigurationSupport.getArgumentResolvers()
Provide access to the shared custom argument resolvers used by theRequestMappingHandlerAdapter
and theExceptionHandlerExceptionResolver
.Method parameters in org.springframework.web.servlet.config.annotation with type arguments of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionprotected void
DelegatingWebMvcConfiguration.addArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) protected void
WebMvcConfigurationSupport.addArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) Add customHandlerMethodArgumentResolvers
to use in addition to the ones registered by default.default void
WebMvcConfigurer.addArgumentResolvers
(List<HandlerMethodArgumentResolver> resolvers) Add resolvers to support custom controller method argument types. -
Uses of HandlerMethodArgumentResolver in org.springframework.web.servlet.mvc.method.annotation
Classes in org.springframework.web.servlet.mvc.method.annotation that implement HandlerMethodArgumentResolverModifier and TypeClassDescriptionclass
A base class for resolving method argument values by reading from the body of a request withHttpMessageConverters
.class
ExtendsAbstractMessageConverterMethodArgumentResolver
with the ability to handle method return values by writing to the response withHttpMessageConverters
.class
No-op resolver for method arguments of typeContinuation
.class
ResolvesHttpEntity
andRequestEntity
method argument values, as well as return values of typeHttpEntity
,ResponseEntity
,ErrorResponse
andProblemDetail
.class
Resolves arguments of typeMap
annotated with@MatrixVariable
where the annotation does not specify a name.class
Resolves arguments annotated with@MatrixVariable
.class
ResolvesMap
method arguments annotated with@PathVariable
where the annotation does not specify a path variable name.class
Resolves method arguments annotated with an @PathVariable
.class
Resolves an argument of typePrincipal
, similar toServletRequestMethodArgumentResolver
but irrespective of whether the argument is annotated or not.class
Resolves method arguments of typeRedirectAttributes
.class
Resolves method arguments annotated with an @RequestAttribute
.class
Resolves the following method arguments: Annotated with @RequestPart
Of typeMultipartFile
in conjunction with Spring'sMultipartResolver
abstraction Of typejakarta.servlet.http.Part
in conjunction with Servlet multipart requestsclass
Resolves method arguments annotated with@RequestBody
and handles return values from methods annotated with@ResponseBody
by reading and writing to the body of the request or response with anHttpMessageConverter
.class
AnAbstractCookieValueMethodArgumentResolver
that resolves cookie values from anHttpServletRequest
.class
A Servlet-specificModelAttributeMethodProcessor
that applies data binding through a WebDataBinder of typeServletRequestDataBinder
.class
Resolves servlet backed request-related method arguments.class
Resolves servlet backed response-related method arguments.class
A Servlet-specificAbstractWebArgumentResolverAdapter
that creates aNativeWebRequest
fromServletRequestAttributes
.class
Resolves method arguments annotated with an @SessionAttribute
.class
Resolvers argument values of typeUriComponentsBuilder
.Methods in org.springframework.web.servlet.mvc.method.annotation that return types with arguments of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionRequestMappingHandlerAdapter.getArgumentResolvers()
Return the configured argument resolvers, or possiblynull
if not initialized yet viaRequestMappingHandlerAdapter.afterPropertiesSet()
.ExceptionHandlerExceptionResolver.getCustomArgumentResolvers()
Return the custom argument resolvers, ornull
.RequestMappingHandlerAdapter.getCustomArgumentResolvers()
Return the custom argument resolvers, ornull
.protected List<HandlerMethodArgumentResolver>
ExceptionHandlerExceptionResolver.getDefaultArgumentResolvers()
Return the list of argument resolvers to use including built-in resolvers and custom resolvers provided viaExceptionHandlerExceptionResolver.setCustomArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver>)
.RequestMappingHandlerAdapter.getInitBinderArgumentResolvers()
Return the argument resolvers for@InitBinder
methods, or possiblynull
if not initialized yet viaRequestMappingHandlerAdapter.afterPropertiesSet()
.Method parameters in org.springframework.web.servlet.mvc.method.annotation with type arguments of type HandlerMethodArgumentResolverModifier and TypeMethodDescriptionvoid
ExceptionHandlerExceptionResolver.setArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) Configure the complete list of supported argument types thus overriding the resolvers that would otherwise be configured by default.void
RequestMappingHandlerAdapter.setArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) Configure the complete list of supported argument types thus overriding the resolvers that would otherwise be configured by default.void
ExceptionHandlerExceptionResolver.setCustomArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) Provide resolvers for custom argument types.void
RequestMappingHandlerAdapter.setCustomArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) Provide resolvers for custom argument types.void
RequestMappingHandlerAdapter.setInitBinderArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) Configure the supported argument types in@InitBinder
methods.