Uses of Interface
org.springframework.web.method.support.HandlerMethodReturnValueHandler
Packages that use 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
Methods in org.springframework.test.web.servlet.client with parameters of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.customReturnValueHandlers
(HandlerMethodReturnValueHandler... handlers) Provide custom return value handlers. -
Uses of HandlerMethodReturnValueHandler in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setCustomReturnValueHandlers
(HandlerMethodReturnValueHandler... handlers) Provide custom handlers for controller method return values. -
Uses of HandlerMethodReturnValueHandler in org.springframework.web.method.annotation
Classes in org.springframework.web.method.annotation that implement HandlerMethodReturnValueHandlerModifier 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
Subinterfaces of HandlerMethodReturnValueHandler in org.springframework.web.method.supportModifier and TypeInterfaceDescriptioninterface
A return value handler that supports async types.Classes in org.springframework.web.method.support that implement HandlerMethodReturnValueHandlerModifier and TypeClassDescriptionclass
Handles method return values by delegating to a list of registeredHandlerMethodReturnValueHandlers
.Methods in org.springframework.web.method.support that return types with arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.getHandlers()
Return a read-only list with the registered handlers, or an empty list.Methods in org.springframework.web.method.support with parameters of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.addHandler
(HandlerMethodReturnValueHandler handler) Add the givenHandlerMethodReturnValueHandler
.Method parameters in org.springframework.web.method.support with type arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.addHandlers
(List<? extends HandlerMethodReturnValueHandler> handlers) Add the givenHandlerMethodReturnValueHandlers
. -
Uses of HandlerMethodReturnValueHandler in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return types with arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionprotected final List<HandlerMethodReturnValueHandler>
WebMvcConfigurationSupport.getReturnValueHandlers()
Provide access to the shared return value handlers used by theRequestMappingHandlerAdapter
and theExceptionHandlerExceptionResolver
.Method parameters in org.springframework.web.servlet.config.annotation with type arguments of type HandlerMethodReturnValueHandlerModifier 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
Classes in org.springframework.web.servlet.mvc.method.annotation that implement HandlerMethodReturnValueHandlerModifier 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.Methods in org.springframework.web.servlet.mvc.method.annotation that return types with arguments of type HandlerMethodReturnValueHandlerModifier 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()
.Method parameters in org.springframework.web.servlet.mvc.method.annotation with type arguments of type HandlerMethodReturnValueHandlerModifier 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.