File tree Expand file tree Collapse file tree 7 files changed +38
-1
lines changed
spring-messaging/src/main/java/org/springframework/messaging Expand file tree Collapse file tree 7 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .messaging .Message ;
26
+
25
27
26
28
/**
27
- * Annotation indicating a method parameter should be bound to the body of a message.
29
+ * Annotation indicating a method parameter should be bound to the body of a
30
+ * {@link Message}.
28
31
*
29
32
* @author Rossen Stoyanchev
30
33
* @since 4.0
Original file line number Diff line number Diff line change 25
25
26
26
27
27
/**
28
+ * Annotation for handling exceptions from message-handling methods within specific
29
+ * handler methods.
30
+ *
31
+ *
28
32
* @author Rossen Stoyanchev
29
33
* @since 4.0
30
34
*/
Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .messaging .Message ;
26
+
27
+
25
28
/**
29
+ * Annotation for mapping a {@link Message} onto specific handler handler methods based on
30
+ * the destination for the message.
31
+ *
26
32
* @author Rossen Stoyanchev
27
33
* @since 4.0
28
34
*/
Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .messaging .Message ;
26
+
25
27
26
28
/**
29
+ * Annotation that indicates a method's return value should be converted to
30
+ * a {@link Message} and sent to the specified destination.
31
+ *
27
32
* @author Rossen Stoyanchev
28
33
* @since 4.0
29
34
*/
Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .messaging .Message ;
26
+ import org .springframework .messaging .simp .SimpMessageHeaderAccessor ;
27
+
25
28
26
29
/**
30
+ * Annotation that can be used on methods processing an input message to indicate that the
31
+ * method's return value should be converted to a {@link Message} and sent to the
32
+ * specified destination with the prefix <code>"/user/{username}"</code> automatically
33
+ * prepended with the user information expected to be the input message header
34
+ * {@link SimpMessageHeaderAccessor#USER_HEADER}. Such user destinations may need to be
35
+ * further resolved to actual destinations.
36
+ *
27
37
* @author Rossen Stoyanchev
28
38
* @since 4.0
39
+ *
40
+ * @see org.springframework.messaging.handler.annotation.ReplyTo
41
+ * @see org.springframework.messaging.simp.handler.UserDestinationMessageHandler
29
42
*/
30
43
@ Target (ElementType .METHOD )
31
44
@ Retention (RetentionPolicy .RUNTIME )
Original file line number Diff line number Diff line change 24
24
25
25
26
26
/**
27
+ * Annotation for mapping subscription events onto specific handler handler methods based
28
+ * on the destination for the message (e.g. STOMP SUBSCRIBE message).
29
+ *
27
30
* @author Rossen Stoyanchev
28
31
* @since 4.0
29
32
*/
Original file line number Diff line number Diff line change 24
24
25
25
26
26
/**
27
+ * Annotation for mapping unsubscribe events onto specific handler handler methods based
28
+ * on the destination for the message (e.g. STOMP UNSUBSCRIBE message).
29
+ *
27
30
* @author Rossen Stoyanchev
28
31
* @since 4.0
29
32
*/
You can’t perform that action at this time.
0 commit comments