1. 31 5月, 2014 1 次提交
  2. 12 5月, 2014 1 次提交
    • R
      Add WebSocket scope · 2c4cbb61
      Rossen Stoyanchev 提交于
      This change adds support for a custom "websocket" scope.
      
      WebSocket-scoped beans may be injected into controllers with message
      handling methods as well as channel interceptor registered on the
      "inboundClientChannel".
      
      Issue: SPR-11305
      2c4cbb61
  3. 09 5月, 2014 1 次提交
    • R
      Allow use of @SendToUser even w/o authenticated user · 97fb308b
      Rossen Stoyanchev 提交于
      Before this change, subscribing to a user destination and use of
      @SendToUser annotation required an authenticated user.
      
      This change makes it possible to subscribe to a user destination from
      WebSocket sessions without an authenticated user. In such cases the
      destination is associated with one session only rather than with a
      user (and all their sessions).
      
      It is then also possible to send a message to a user destination
      via "/user/{sessionId}/.." rather than "/user/{user}/...".
      
      That means @SendToUser works relying on the session id of the input
      message, effectively sending a reply to destination private to the
      session.
      
      A key use case for this is handling an exception with an
      @MessageExceptionHandler method and sending a reply with @SendToUser.
      
      Issue: SPR-11309
      97fb308b
  4. 26 4月, 2014 1 次提交
  5. 22 4月, 2014 1 次提交
  6. 15 4月, 2014 1 次提交
  7. 14 4月, 2014 2 次提交
    • R
      Switch BufferingStompDecoder to decoration · 65b17b80
      Rossen Stoyanchev 提交于
      The BufferingStompDecoder now decorates rather than extend
      StompDecoder. This allows a single StompDecoder instance to be
      configured and extended independantly while buffering remains a
      separate concern.
      65b17b80
    • R
      Make use of enhanced MessageHeaderAccessor support · ae942ffd
      Rossen Stoyanchev 提交于
      Mutate rather than re-create headers when decoding STOMP messages
      before a message is sent on a message channel.
      
      Use MessageBuilder.createMessage to ensure the fully prepared
      MessageHeaders is used directly MessageHeaderAccessor instance.
      
      Issue: SPR-11468
      ae942ffd
  8. 05 4月, 2014 1 次提交
    • R
      Rename header for "orig" destination · 5e925ac0
      Rossen Stoyanchev 提交于
      The UserDestinationMessageHandler adds a header providing a hint for
      what the original destination a user may have used when subscribing.
      That is then used when writing messages back to WebSocket clients to
      ensure they dont see the internally used, transformed user destination.
      
      This change moves the header name constatn to make it more broadly
      applicable. For example SPR-11645.
      5e925ac0
  9. 04 4月, 2014 1 次提交
  10. 28 3月, 2014 1 次提交
  11. 26 3月, 2014 1 次提交
  12. 25 3月, 2014 9 次提交
  13. 23 3月, 2014 3 次提交
    • R
      7af74b24
    • R
      Add CloseStatus to indicate unreliable session · cbd5af3a
      Rossen Stoyanchev 提交于
      When a send timeout is detected, the WebSocket session is now closed
      with a custom close status that indicates so. This allows skipping
      parts of the close logic that may cause further hanging.
      
      Issue: SPR-11450
      cbd5af3a
    • R
      Improve ConcurrentWebSocketSessionDecorator · ffac748f
      Rossen Stoyanchev 提交于
      Before this change the decorator ensured that for a specific WebSocket
      session only one thread at a time can send a message. Other threads
      attempting to send would have their messages buffered and each time
      that occurs, a check is also made to see if the buffer limit has been
      reached or the send time limit has been exceeded and if so the session
      is closed.
      
      This change adds further protection to ensure only one thread at a time
      can perform the session limit checks and attempt to close the session.
      Furthermore if the session has timed out and become unresponsive,
      attempts to close it may block yet another thread. Taking this into
      consideration this change also ensures that state associated with the
      session is cleaned first before an attempt is made to close the session.
      
      Issue: SPR-11450
      ffac748f
  14. 21 3月, 2014 3 次提交
  15. 20 3月, 2014 1 次提交
    • R
      Add session attributes to SimpMessageHeaderAccessor · 1bab8a39
      Rossen Stoyanchev 提交于
      This change exposes the WebSocketSession attributes through a message header.
      The StompSubProtocolHandler adds this to incoming messages.
      For now messaging handling  methods can access the map via @Header, e.g.:
      
      @Header(StompHeaderAccessor.SESSION_ATTRIBUTES) Map<String, Object> attrs) {
      
      Issue: SPR-11566
      1bab8a39
  16. 11 3月, 2014 1 次提交
  17. 14 2月, 2014 1 次提交
    • R
      Ensure matching user destination returned · 32e5f57e
      Rossen Stoyanchev 提交于
      Before this change, when a client subscribed to a "user" destination
      (e.g. /user/foo), actual messages received in response to that
      subscription contained the server-translated, unique user destination
      (e.g. /foo-user123).
      
      This is not an issue for clients such as stomp.js since the
      subscription is unique and sufficient to match subscription responses.
      However, other STOMP clients do additional checks on the destination
      of the subscription and the response.
      
      This change ensures that messages sent to clients on user destionations
      always contain a destination that matches the one on the original
      subscription.
      
      Issue: SPR-11423
      32e5f57e
  18. 22 1月, 2014 2 次提交
  19. 03 1月, 2014 1 次提交
  20. 08 12月, 2013 1 次提交
    • J
      Introduced SockJsSession interface and moved SockJsSessionFactory and... · 1f9b833c
      Juergen Hoeller 提交于
      Introduced SockJsSession interface and moved SockJsSessionFactory and SockJsServiceConfig to sockjs.transport; added initialize(SockJsServiceConfig) method to TransportHandler interface; extracted TransportHandlingSockJsService from DefaultSockJsService; moved sockjs.support.frame to sockjs.frame and extracted (Default)SockJsFrameFormat from SockJsFrame; moved SockJsHttpRequestHandler to sockjs.support; removed Jackson 1.x support
      1f9b833c
  21. 07 12月, 2013 1 次提交
  22. 04 12月, 2013 1 次提交
  23. 03 12月, 2013 4 次提交