Top Description Methods
org.springframework.messaging.handler.annotation

public @Interface SendTo

extends Annotation
Annotations
@Target:TYPE, METHOD
@Retention:RUNTIME
@Documented
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, org.springframework.messaging.Message

Annotation that indicates a method's return value should be converted to a Message if necessary and sent to the specified destination.

In a typical request/reply scenario, the incoming Message may convey the destination to use for the reply. In that case, that destination should take precedence.

This annotation may be placed class-level in which case it is inherited by methods of the class.

Authors
Rossen Stoyanchev, Stephane Nicoll
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public String[]
value()

The destination for a message created from the return value of a method.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String[] value()

The destination for a message created from the return value of a method.