Package | Description |
---|---|
org.springframework.test.web.servlet.client |
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling. |
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
org.springframework.web.method.annotation |
Support classes for annotation-based handler method processing.
|
org.springframework.web.method.support |
Generic support classes for handler method processing.
|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Method and Description |
---|---|
MockMvcWebTestClient.ControllerSpec |
MockMvcWebTestClient.ControllerSpec.customArgumentResolvers(HandlerMethodArgumentResolver... argumentResolvers)
Provide custom argument resolvers.
|
Modifier and Type | Method and Description |
---|---|
StandaloneMockMvcBuilder |
StandaloneMockMvcBuilder.setCustomArgumentResolvers(HandlerMethodArgumentResolver... argumentResolvers)
Provide custom resolvers for controller method arguments.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCookieValueMethodArgumentResolver
A base abstract class to resolve method arguments annotated with
@CookieValue . |
class |
AbstractNamedValueMethodArgumentResolver
Abstract base class for resolving method arguments from a named value.
|
class |
AbstractWebArgumentResolverAdapter
An abstract base class adapting a
WebArgumentResolver to the
HandlerMethodArgumentResolver contract. |
class |
ErrorsMethodArgumentResolver
Resolves
Errors method arguments. |
class |
ExpressionValueMethodArgumentResolver
Resolves method arguments annotated with
@Value . |
class |
MapMethodProcessor
|
class |
ModelAttributeMethodProcessor
Resolve
@ModelAttribute annotated method arguments and handle
return values from @ModelAttribute annotated methods. |
class |
ModelMethodProcessor
|
class |
RequestHeaderMapMethodArgumentResolver
Resolves
Map method arguments annotated with @RequestHeader . |
class |
RequestHeaderMethodArgumentResolver
Resolves method arguments annotated with
@RequestHeader except for
Map arguments. |
class |
RequestParamMapMethodArgumentResolver
Resolves
Map method arguments annotated with an @RequestParam
where the annotation does not specify a request parameter name. |
class |
RequestParamMethodArgumentResolver
Resolves method arguments annotated with @
RequestParam , arguments of
type MultipartFile in conjunction with Spring's MultipartResolver
abstraction, and arguments of type javax.servlet.http.Part in conjunction
with Servlet 3.0 multipart requests. |
class |
SessionStatusMethodArgumentResolver
Resolves a
SessionStatus argument by obtaining it from
the ModelAndViewContainer . |
Modifier and Type | Class and Description |
---|---|
class |
HandlerMethodArgumentResolverComposite
Resolves method parameters by delegating to a list of registered
HandlerMethodArgumentResolvers . |
Modifier and Type | Method and Description |
---|---|
List<HandlerMethodArgumentResolver> |
HandlerMethodArgumentResolverComposite.getResolvers()
Return a read-only list with the contained resolvers, or an empty list.
|
Modifier and Type | Method and Description |
---|---|
HandlerMethodArgumentResolverComposite |
HandlerMethodArgumentResolverComposite.addResolver(HandlerMethodArgumentResolver resolver)
Add the given
HandlerMethodArgumentResolver . |
HandlerMethodArgumentResolverComposite |
HandlerMethodArgumentResolverComposite.addResolvers(HandlerMethodArgumentResolver... resolvers)
Add the given
HandlerMethodArgumentResolvers . |
Modifier and Type | Method and Description |
---|---|
HandlerMethodArgumentResolverComposite |
HandlerMethodArgumentResolverComposite.addResolvers(List<? extends HandlerMethodArgumentResolver> resolvers)
Add the given
HandlerMethodArgumentResolvers . |
Modifier and Type | Method and Description |
---|---|
protected List<HandlerMethodArgumentResolver> |
WebMvcConfigurationSupport.getArgumentResolvers()
Provide access to the shared custom argument resolvers used by the
RequestMappingHandlerAdapter and the ExceptionHandlerExceptionResolver . |
Modifier and Type | Method and Description |
---|---|
void |
WebMvcConfigurerAdapter.addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
Deprecated.
Add resolvers to support custom controller method argument types.
|
protected void |
WebMvcConfigurationSupport.addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
Add custom
HandlerMethodArgumentResolvers
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.
|
protected void |
DelegatingWebMvcConfiguration.addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessageConverterMethodArgumentResolver
A base class for resolving method argument values by reading from the body of
a request with
HttpMessageConverters . |
class |
AbstractMessageConverterMethodProcessor
Extends
AbstractMessageConverterMethodArgumentResolver with the ability to handle method
return values by writing to the response with HttpMessageConverters . |
class |
ContinuationHandlerMethodArgumentResolver
No-op resolver for method arguments of type
Continuation . |
class |
HttpEntityMethodProcessor
Resolves
HttpEntity and RequestEntity method argument values
and also handles HttpEntity and ResponseEntity return values. |
class |
MatrixVariableMapMethodArgumentResolver
Resolves arguments of type
Map annotated with @MatrixVariable
where the annotation does not specify a name. |
class |
MatrixVariableMethodArgumentResolver
Resolves arguments annotated with
@MatrixVariable . |
class |
PathVariableMapMethodArgumentResolver
Resolves
Map method arguments annotated with an @PathVariable
where the annotation does not specify a path variable name. |
class |
PathVariableMethodArgumentResolver
Resolves method arguments annotated with an @
PathVariable . |
class |
PrincipalMethodArgumentResolver
Resolves an argument of type
Principal , similar to
ServletRequestMethodArgumentResolver but irrespective of whether the
argument is annotated or not. |
class |
RedirectAttributesMethodArgumentResolver
Resolves method arguments of type
RedirectAttributes . |
class |
RequestAttributeMethodArgumentResolver
Resolves method arguments annotated with an @
RequestAttribute . |
class |
RequestPartMethodArgumentResolver
Resolves the following method arguments:
Annotated with @
RequestPart
Of type MultipartFile in conjunction with Spring's MultipartResolver abstraction
Of type javax.servlet.http.Part in conjunction with Servlet 3.0 multipart requests
|
class |
RequestResponseBodyMethodProcessor
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 an HttpMessageConverter . |
class |
ServletCookieValueMethodArgumentResolver
An
AbstractCookieValueMethodArgumentResolver
that resolves cookie values from an HttpServletRequest . |
class |
ServletModelAttributeMethodProcessor
A Servlet-specific
ModelAttributeMethodProcessor that applies data
binding through a WebDataBinder of type ServletRequestDataBinder . |
class |
ServletRequestMethodArgumentResolver
Resolves servlet backed request-related method arguments.
|
class |
ServletResponseMethodArgumentResolver
Resolves servlet backed response-related method arguments.
|
class |
ServletWebArgumentResolverAdapter
A Servlet-specific
AbstractWebArgumentResolverAdapter
that creates a NativeWebRequest from ServletRequestAttributes . |
class |
SessionAttributeMethodArgumentResolver
Resolves method arguments annotated with an @
SessionAttribute . |
class |
UriComponentsBuilderMethodArgumentResolver
Resolvers argument values of type
UriComponentsBuilder . |
Modifier and Type | Method and Description |
---|---|
List<HandlerMethodArgumentResolver> |
RequestMappingHandlerAdapter.getArgumentResolvers()
Return the configured argument resolvers, or possibly
null if
not initialized yet via RequestMappingHandlerAdapter.afterPropertiesSet() . |
List<HandlerMethodArgumentResolver> |
ExceptionHandlerExceptionResolver.getCustomArgumentResolvers()
Return the custom argument resolvers, or
null . |
List<HandlerMethodArgumentResolver> |
RequestMappingHandlerAdapter.getCustomArgumentResolvers()
Return the custom argument resolvers, or
null . |
protected List<HandlerMethodArgumentResolver> |
ExceptionHandlerExceptionResolver.getDefaultArgumentResolvers()
Return the list of argument resolvers to use including built-in resolvers
and custom resolvers provided via
ExceptionHandlerExceptionResolver.setCustomArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver>) . |
List<HandlerMethodArgumentResolver> |
RequestMappingHandlerAdapter.getInitBinderArgumentResolvers()
Return the argument resolvers for
@InitBinder methods, or possibly
null if not initialized yet via RequestMappingHandlerAdapter.afterPropertiesSet() . |
Modifier and Type | Method and Description |
---|---|
void |
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. |