1. 19 2月, 2015 1 次提交
  2. 18 2月, 2015 2 次提交
  3. 11 2月, 2015 2 次提交
  4. 10 2月, 2015 1 次提交
    • S
      Annotation-based event listeners · f0fca890
      Stephane Nicoll 提交于
      Add support for annotation-based event listeners. Enabled automatically
      when using Java configuration or can be enabled explicitly via the
      regular <context:annotation-driven/> XML element. Detect methods of
      managed beans annotated with @EventListener, either directly or through
      a meta-annotation.
      
      Annotated methods must define the event type they listen to as a single
      parameter argument. Events are automatically filtered out according to
      the method signature. When additional runtime filtering is required, one
      can specify the `condition` attribute of the annotation that defines a
      SpEL expression that should match to actually invoke the method for a
      particular event. The root context exposes the actual `event`
      (`#root.event`) and method arguments (`#root.args`). Individual method
      arguments are also exposed via either the `a` or `p` alias (`#a0` refers
      to the first method argument). Finally, methods arguments are exposed via
      their names if that information can be discovered.
      
      Events can be either an ApplicationEvent or any arbitrary payload. Such
      payload is wrapped automatically in a PayloadApplicationEvent and managed
      explicitly internally. As a result, users can now publish and listen
      for arbitrary objects.
      
      If an annotated method has a return value, an non null result is actually
      published as a new event, something like:
      
      @EventListener
      public FooEvent handle(BarEvent event) { ... }
      
      Events can be handled in an aynchronous manner by adding `@Async` to the
      event method declaration and enabling such infrastructure. Events can
      also be ordered by adding an `@order` annotation to the event method.
      
      Issue: SPR-11622
      f0fca890
  5. 03 2月, 2015 1 次提交
  6. 21 1月, 2015 1 次提交
  7. 13 1月, 2015 1 次提交
    • R
      Remove isStreaming flag from AbstractHttpSockJsSession · 43d93712
      Rossen Stoyanchev 提交于
      This change removes the need for the isStreaming field from the base
      class AbstractHttpSockJsSession. This field was used to account for
      differences between polling vs streaming SockJS sessions without having
      to expose to sub-classes private fields that are otherwise protected
      from concurrent access by the base class. The change manages to delegate
      to sub-classes without providing direct access to protected fields.
      
      Issue: SPR-12427
      43d93712
  8. 06 1月, 2015 1 次提交
    • R
      Remove STOMP relay integration test · f59fc83f
      Rossen Stoyanchev 提交于
      The test was verifying that when a DISCONNECT frame is sent to the
      broker, there will be no further messages on the clientOutboundChannel.
      
      This is generally true, however in some cases when the broker receives
      a DISCONNECT it may close its connection fast enough (before we do) in
      which case we send an ERROR message downstream to ensure the WebSocket
      side is cleaned up. Either way the downstream should be idempotent
      with regards to cleaning up sessions.
      f59fc83f
  9. 30 12月, 2014 2 次提交
  10. 29 12月, 2014 1 次提交
  11. 03 12月, 2014 3 次提交
  12. 01 12月, 2014 1 次提交
  13. 25 11月, 2014 2 次提交
  14. 23 11月, 2014 1 次提交
  15. 21 11月, 2014 1 次提交
    • B
      Fix user destination parsing in simp messaging · 75c70fac
      Brian Clozel 提交于
      This commit fixes the parsing of message destinations such as
      "/user/anna/queue/foo", reverting a regression introduced by SPR-11506,
      which worked well with @SendToUser use cases but caused issues for
      messages sent to other users.
      
      Issue: SPR-12444
      75c70fac
  16. 11 11月, 2014 3 次提交
  17. 01 11月, 2014 1 次提交
  18. 30 10月, 2014 1 次提交
  19. 27 10月, 2014 1 次提交
  20. 24 10月, 2014 2 次提交
    • R
      Simple broker sends notice after disconnect · 01aa64c5
      Rossen Stoyanchev 提交于
      Before this change the simple broker simply removed subscriptions
      upon receiving a DISCONNECT message assuming it was a result of
      a client STOMP WebSocket session ending.
      
      However, if the server-side application sends a DISCONNECT to
      the broker in order to terminate a session, the STOMP WebSocket
      session could remain unware without any further action. This
      change ensures the simple broker sends a DISCONNECT_ACK message
      downstream whenever it receives a DISCONNECT.
      
      Issue: SPR-12288
      01aa64c5
    • R
      Add ImmutableMessageChannelInterceptor · 687955a7
      Rossen Stoyanchev 提交于
      This change adds a ChannelInterceptor that flips the immutable flag on
      messages being sent. This allows components sending messages to leave
      the message mutable for interceptors to further apply modifications
      before the message is sent (and exposed to concurrency).
      
      The interceptor is automatically added with the STOMP/WebSocket Java
      and XML config and the StompSubProtocolHandler leaves parsed incoming
      messages mutable so they can be further modified before being sent.
      
      Issue: SPR-12321
      687955a7
  21. 21 10月, 2014 1 次提交
  22. 14 10月, 2014 1 次提交
  23. 04 10月, 2014 2 次提交
  24. 01 10月, 2014 1 次提交
  25. 30 9月, 2014 5 次提交
  26. 27 9月, 2014 1 次提交