Uses of Interface
org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandler
Packages that use HandlerMethodReturnValueHandler
Package
Description
Common infrastructure for invoking message handler methods.
Support classes for handling messages from simple messaging protocols
(like STOMP).
Configuration support for WebSocket messaging using higher level messaging protocols.
Support for annotation-based WebSocket setup in configuration classes.
-
Uses of HandlerMethodReturnValueHandler in org.springframework.messaging.handler.invocation
Subinterfaces of HandlerMethodReturnValueHandler in org.springframework.messaging.handler.invocationModifier and TypeInterfaceDescriptioninterface
An extension ofHandlerMethodReturnValueHandler
for handling async, Future-like return value types that support success and error callbacks.Classes in org.springframework.messaging.handler.invocation that implement HandlerMethodReturnValueHandlerModifier and TypeClassDescriptionclass
Convenient base class forAsyncHandlerMethodReturnValueHandler
implementations that support only asynchronous (Future-like) return values and merely serve as adapters of such types to Spring'sListenableFuture
.class
Support forCompletableFuture
(and as of 4.3.7 alsoCompletionStage
) as a return value type.class
A HandlerMethodReturnValueHandler that wraps and delegates to others.class
Support forListenableFuture
as a return value type.class
Support for single-value reactive types (likeMono
orSingle
) as a return value type.Methods in org.springframework.messaging.handler.invocation that return types with arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionAbstractMethodMessageHandler.getCustomReturnValueHandlers()
Return the configured custom return value handlers, if any.AbstractMethodMessageHandler.getReturnValueHandlers()
Return the complete list of return value handlers.HandlerMethodReturnValueHandlerComposite.getReturnValueHandlers()
Return a read-only list with the configured handlers.protected abstract List<? extends HandlerMethodReturnValueHandler>
AbstractMethodMessageHandler.initReturnValueHandlers()
Return the list of return value handlers to use.Methods in org.springframework.messaging.handler.invocation with parameters of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.addHandler
(HandlerMethodReturnValueHandler returnValueHandler) Add the givenHandlerMethodReturnValueHandler
.Method parameters in org.springframework.messaging.handler.invocation with type arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionHandlerMethodReturnValueHandlerComposite.addHandlers
(List<? extends HandlerMethodReturnValueHandler> handlers) Add the givenHandlerMethodReturnValueHandlers
.void
AbstractMethodMessageHandler.setCustomReturnValueHandlers
(List<HandlerMethodReturnValueHandler> customReturnValueHandlers) Set the list of customHandlerMethodReturnValueHandler
s that will be used after return value handlers for known types.void
AbstractMethodMessageHandler.setReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) Configure the complete list of supported return value types, effectively overriding the ones configured by default. -
Uses of HandlerMethodReturnValueHandler in org.springframework.messaging.simp.annotation.support
Classes in org.springframework.messaging.simp.annotation.support that implement HandlerMethodReturnValueHandlerModifier and TypeClassDescriptionclass
AHandlerMethodReturnValueHandler
for sending to destinations specified in aSendTo
orSendToUser
method-level annotations.class
HandlerMethodReturnValueHandler
for replying directly to a subscription.Methods in org.springframework.messaging.simp.annotation.support that return types with arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionprotected List<? extends HandlerMethodReturnValueHandler>
SimpAnnotationMethodMessageHandler.initReturnValueHandlers()
-
Uses of HandlerMethodReturnValueHandler in org.springframework.messaging.simp.config
Method parameters in org.springframework.messaging.simp.config with type arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionprotected void
AbstractMessageBrokerConfiguration.addReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) -
Uses of HandlerMethodReturnValueHandler in org.springframework.web.socket.config.annotation
Method parameters in org.springframework.web.socket.config.annotation with type arguments of type HandlerMethodReturnValueHandlerModifier and TypeMethodDescriptionprotected void
DelegatingWebSocketMessageBrokerConfiguration.addReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) default void
WebSocketMessageBrokerConfigurer.addReturnValueHandlers
(List<HandlerMethodReturnValueHandler> returnValueHandlers) Add handlers to support custom controller method return value types.