Uses of Interface
org.springframework.web.method.support.HandlerMethodReturnValueHandler
Packages that use HandlerMethodReturnValueHandler Package Description org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilder
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 theorg.springframework.web.method.annotation
package.Uses of HandlerMethodReturnValueHandler in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type HandlerMethodReturnValueHandler Modifier and Type Method Description StandaloneMockMvcBuilder
StandaloneMockMvcBuilder. 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 HandlerMethodReturnValueHandler Modifier and Type Class Description class
MapMethodProcessor
class
ModelAttributeMethodProcessor
Resolve@ModelAttribute
annotated method arguments and handle return values from@ModelAttribute
annotated methods.class
ModelMethodProcessor
Uses of HandlerMethodReturnValueHandler in org.springframework.web.method.support
Subinterfaces of HandlerMethodReturnValueHandler in org.springframework.web.method.support Modifier and Type Interface Description interface
AsyncHandlerMethodReturnValueHandler
A return value handler that supports async types.Classes in org.springframework.web.method.support that implement HandlerMethodReturnValueHandler Modifier and Type Class Description class
HandlerMethodReturnValueHandlerComposite
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 HandlerMethodReturnValueHandler Modifier and Type Method Description List<HandlerMethodReturnValueHandler>
HandlerMethodReturnValueHandlerComposite. 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 HandlerMethodReturnValueHandler Modifier and Type Method Description HandlerMethodReturnValueHandlerComposite
HandlerMethodReturnValueHandlerComposite. addHandler(HandlerMethodReturnValueHandler handler)
Add the givenHandlerMethodReturnValueHandler
.Method parameters in org.springframework.web.method.support with type arguments of type HandlerMethodReturnValueHandler Modifier and Type Method Description HandlerMethodReturnValueHandlerComposite
HandlerMethodReturnValueHandlerComposite. 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 HandlerMethodReturnValueHandler Modifier and Type Method Description protected 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 HandlerMethodReturnValueHandler Modifier and Type Method Description protected 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.void
WebMvcConfigurerAdapter. addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Deprecated.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 HandlerMethodReturnValueHandler Modifier and Type Class Description class
AbstractMessageConverterMethodProcessor
ExtendsAbstractMessageConverterMethodArgumentResolver
with the ability to handle method return values by writing to the response withHttpMessageConverters
.class
AsyncTaskMethodReturnValueHandler
Handles return values of typeWebAsyncTask
.class
CallableMethodReturnValueHandler
Handles return values of typeCallable
.class
DeferredResultMethodReturnValueHandler
class
HttpEntityMethodProcessor
ResolvesHttpEntity
andRequestEntity
method argument values and also handlesHttpEntity
andResponseEntity
return values.class
HttpHeadersReturnValueHandler
HandlesHttpHeaders
return values.class
ModelAndViewMethodReturnValueHandler
Handles return values of typeModelAndView
copying view and model information to theModelAndViewContainer
.class
ModelAndViewResolverMethodReturnValueHandler
This return value handler is intended to be ordered after all others as it attempts to handle _any_ return value type (i.e.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 anHttpMessageConverter
.class
ResponseBodyEmitterReturnValueHandler
Handler for return values of typeResponseBodyEmitter
and sub-classes such asSseEmitter
including the same types wrapped withResponseEntity
.class
ServletModelAttributeMethodProcessor
A Servlet-specificModelAttributeMethodProcessor
that applies data binding through a WebDataBinder of typeServletRequestDataBinder
.class
StreamingResponseBodyReturnValueHandler
Supports return values of typeStreamingResponseBody
and alsoResponseEntity<StreamingResponseBody>
.class
ViewMethodReturnValueHandler
Handles return values that are of typeView
.class
ViewNameMethodReturnValueHandler
Handles return values of typesvoid
andString
interpreting them as view name reference.Method parameters in org.springframework.web.servlet.mvc.method.annotation with type arguments of type HandlerMethodReturnValueHandler Modifier and Type Method Description void
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.