Uses of Interface
org.springframework.web.method.support.HandlerMethodReturnValueHandler
Packages that use HandlerMethodReturnValueHandler
Package
Description
Support for testing Spring MVC applications via
RestTestClient 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 TypeClassDescriptionclassclassResolve@ModelAttributeannotated method arguments and handle return values from@ModelAttributeannotated methods.class -
Uses of HandlerMethodReturnValueHandler in org.springframework.web.method.support
Subinterfaces of HandlerMethodReturnValueHandler in org.springframework.web.method.supportModifier and TypeInterfaceDescriptioninterfaceA return value handler that supports async types.Classes in org.springframework.web.method.support that implement HandlerMethodReturnValueHandlerModifier and TypeClassDescriptionclassHandles 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(@Nullable 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 theRequestMappingHandlerAdapterand theExceptionHandlerExceptionResolver.Method parameters in org.springframework.web.servlet.config.annotation with type arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionprotected voidDelegatingWebMvcConfiguration.addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) protected voidWebMvcConfigurationSupport.addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) Add customHandlerMethodReturnValueHandlersin addition to the ones registered by default.default voidWebMvcConfigurer.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 TypeClassDescriptionclassExtendsAbstractMessageConverterMethodArgumentResolverwith the ability to handle method return values by writing to the response withHttpMessageConverters.classHandles return values of typeWebAsyncTask.classHandles return values of typeCallable.classHandler for return values of typeDeferredResultandCompletionStage.classResolvesHttpEntityandRequestEntitymethod argument values, as well as return values of typeHttpEntity,ResponseEntity,ErrorResponseandProblemDetail.classHandlesHttpHeadersreturn values.classHandles return values of typeModelAndViewcopying view and model information to theModelAndViewContainer.classThis return value handler is intended to be ordered after all others as it attempts to handle _any_ return value type (i.e.classResolves method arguments annotated with@RequestBodyand handles return values from methods annotated with@ResponseBodyby reading and writing to the body of the request or response with anHttpMessageConverter.classHandler for return values of type:ResponseBodyEmitterincluding sub-classSseEmitterand others.classHandler for return values of typeResponseEntitythat delegates to one of the following:HttpEntityMethodProcessorfor responses with a concrete body valueResponseBodyEmitterReturnValueHandlerfor responses with a body that is aResponseBodyEmitteror an async/reactive type.classA Servlet-specificModelAttributeMethodProcessorthat applies data binding through a WebDataBinder of typeServletRequestDataBinder.classSupports return values of typeStreamingResponseBodyand alsoResponseEntity<StreamingResponseBody>.classHandles return values that are of typeView.classHandles return values of typesvoidandStringinterpreting 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(List).RequestMappingHandlerAdapter.getReturnValueHandlers()Return the configured handlers, or possiblynullif not initialized yet viaRequestMappingHandlerAdapter.afterPropertiesSet().Method parameters in org.springframework.web.servlet.mvc.method.annotation with type arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionvoidExceptionHandlerExceptionResolver.setCustomReturnValueHandlers(@Nullable List<HandlerMethodReturnValueHandler> returnValueHandlers) Provide handlers for custom return value types.voidRequestMappingHandlerAdapter.setCustomReturnValueHandlers(@Nullable List<HandlerMethodReturnValueHandler> returnValueHandlers) Provide handlers for custom return value types.voidExceptionHandlerExceptionResolver.setReturnValueHandlers(@Nullable List<HandlerMethodReturnValueHandler> returnValueHandlers) Configure the complete list of supported return value types thus overriding handlers that would otherwise be configured by default.voidRequestMappingHandlerAdapter.setReturnValueHandlers(@Nullable List<HandlerMethodReturnValueHandler> returnValueHandlers) Configure the complete list of supported return value types thus overriding handlers that would otherwise be configured by default.