Class SendToMethodReturnValueHandler

java.lang.Object
org.springframework.messaging.simp.annotation.support.SendToMethodReturnValueHandler
All Implemented Interfaces:
HandlerMethodReturnValueHandler

public class SendToMethodReturnValueHandler extends Object implements HandlerMethodReturnValueHandler
A HandlerMethodReturnValueHandler for sending to destinations specified in a SendTo or SendToUser method-level annotations.

The value returned from the method is converted, and turned to a Message and sent through the provided MessageChannel. The message is then enriched with the session id of the input message as well as the destination from the annotation(s). If multiple destinations are specified, a copy of the message is sent to each destination.

Since:
4.0
Author:
Rossen Stoyanchev, Sebastien Deleuze