Uses of Interface
org.springframework.web.method.support.HandlerMethodReturnValueHandler
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 HandlerMethodReturnValueHandler in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.customReturnValueHandlers
(HandlerMethodReturnValueHandler... handlers) Provide custom return value handlers. -
Uses of HandlerMethodReturnValueHandler in org.springframework.test.web.servlet.setup
Modifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setCustomReturnValueHandlers
(HandlerMethodReturnValueHandler... handlers) Provide custom handlers for controller method return values. -
Uses of HandlerMethodReturnValueHandler in org.springframework.web.method.annotation
Modifier and TypeClassDescriptionclass
class
Resolve@ModelAttribute
annotated method arguments and handle return values from@ModelAttribute
annotated methods.class
-
Uses of HandlerMethodReturnValueHandler in org.springframework.web.method.support
Modifier and TypeInterfaceDescriptioninterface
A return value handler that supports async types.Modifier and TypeClassDescriptionclass
Handles method return values by delegating to a list of registeredHandlerMethodReturnValueHandlers
.Modifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.getHandlers()
Return a read-only list with the registered handlers, or an empty list.Modifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.addHandler
(HandlerMethodReturnValueHandler handler) Add the givenHandlerMethodReturnValueHandler
.Modifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.addHandlers
(List<? extends HandlerMethodReturnValueHandler> handlers) Add the givenHandlerMethodReturnValueHandlers
. -
Uses of HandlerMethodReturnValueHandler in org.springframework.web.servlet.config.annotation
Modifier and TypeMethodDescriptionprotected final List<HandlerMethodReturnValueHandler>
WebMvcConfigurationSupport.getReturnValueHandlers()
Provide access to the shared return value handlers used by theRequestMappingHandlerAdapter
and theExceptionHandlerExceptionResolver
.Modifier and TypeMethodDescriptionprotected void
DelegatingWebMvcConfiguration.addReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) protected void
WebMvcConfigurationSupport.addReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) Add customHandlerMethodReturnValueHandlers
in addition to the ones registered by default.default void
WebMvcConfigurer.addReturnValueHandlers
(List<HandlerMethodReturnValueHandler> handlers) Add handlers to support custom controller method return value types. -
Uses of HandlerMethodReturnValueHandler in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeClassDescriptionclass
ExtendsAbstractMessageConverterMethodArgumentResolver
with the ability to handle method return values by writing to the response withHttpMessageConverters
.class
Handles return values of typeWebAsyncTask
.class
Handles return values of typeCallable
.class
class
ResolvesHttpEntity
andRequestEntity
method argument values, as well as return values of typeHttpEntity
,ResponseEntity
,ErrorResponse
andProblemDetail
.class
HandlesHttpHeaders
return values.class
Handles return values of typeModelAndView
copying view and model information to theModelAndViewContainer
.class
This return value handler is intended to be ordered after all others as it attempts to handle _any_ return value type (i.e.class
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
Handler for return values of typeResponseBodyEmitter
and subclasses such asSseEmitter
including the same types wrapped withResponseEntity
.class
A Servlet-specificModelAttributeMethodProcessor
that applies data binding through a WebDataBinder of typeServletRequestDataBinder
.class
Supports return values of typeStreamingResponseBody
and alsoResponseEntity<StreamingResponseBody>
.class
Handles return values that are of typeView
.class
Handles return values of typesvoid
andString
interpreting them as view name reference.Modifier and TypeMethodDescriptionExceptionHandlerExceptionResolver.getCustomReturnValueHandlers()
Return the custom return value handlers, ornull
.RequestMappingHandlerAdapter.getCustomReturnValueHandlers()
Return the custom return value handlers, ornull
.protected List<HandlerMethodReturnValueHandler>
ExceptionHandlerExceptionResolver.getDefaultReturnValueHandlers()
Return the list of return value handlers to use including built-in and custom handlers provided viaExceptionHandlerExceptionResolver.setReturnValueHandlers(java.util.List<org.springframework.web.method.support.HandlerMethodReturnValueHandler>)
.RequestMappingHandlerAdapter.getReturnValueHandlers()
Return the configured handlers, or possiblynull
if not initialized yet viaRequestMappingHandlerAdapter.afterPropertiesSet()
.Modifier and TypeMethodDescriptionvoid
ExceptionHandlerExceptionResolver.setCustomReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) Provide handlers for custom return value types.void
RequestMappingHandlerAdapter.setCustomReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) Provide handlers for custom return value types.void
ExceptionHandlerExceptionResolver.setReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) Configure the complete list of supported return value types thus overriding handlers that would otherwise be configured by default.void
RequestMappingHandlerAdapter.setReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) Configure the complete list of supported return value types thus overriding handlers that would otherwise be configured by default.