org.springframework.messaging.simp.annotation

## Annotation Type SendToUser

-     @Target(value=METHOD)
       @Retention(value=RUNTIME)
       @Documented
      public @interface SendToUser

  Annotation that can be used on methods processing an input message to indicate that the method's return value should be converted to a `Message` and sent to the specified destination with the prefix `"/user/{username}"` automatically prepended with the user information expected to be the input message header `SimpMessageHeaderAccessor.USER_HEADER`. Such user destinations may need to be further resolved to actual destinations.
  Since:
    4.0
  Author:
    Rossen Stoyanchev
  See Also:
    `SendTo`, `UserDestinationMessageHandler`

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String[]` | `value` The destination for a message based on the return value of a method.

- - ### Element Detail

    - #### value

          public abstract String[] value

      The destination for a message based on the return value of a method.
      Default:
        {}