1. 31 5月, 2014 1 次提交
  2. 22 4月, 2014 1 次提交
  3. 28 3月, 2014 1 次提交
  4. 25 3月, 2014 2 次提交
  5. 23 3月, 2014 2 次提交
    • 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
  6. 21 3月, 2014 1 次提交
  7. 11 3月, 2014 1 次提交
  8. 04 12月, 2013 1 次提交
  9. 03 12月, 2013 1 次提交
    • B
      Add XML namespace for WebSocket config · 10f5d96a
      Brian Clozel 提交于
      This commit adds an XML namespace equivalent of @EnableWebSocket and
      @EnableWebSocketMessageBroker. Those are <websocket:handlers> and
      <websocket:message-broker> respectively.
      
      Examples can be found in the test suite.
      
      This commit also alters the way MessageHandler's subscribe to their
      respective MessageChannel's of interest. Rather than performing the
      subscriptions in configuration code, the message channels are now
      passed into MessageHandler's so they can subscribe themselves on
      startup.
      
      Issue: SPR-11063
      10f5d96a
  10. 27 11月, 2013 1 次提交
    • P
      General polish of new 4.0 classes · 15698860
      Phillip Webb 提交于
      Apply consistent styling to new classes introduced in Spring 4.0.
      
      - Javadoc line wrapping, whitespace and formatting
      - General code whitespace
      - Consistent Assert.notNull messages
      15698860
  11. 26 11月, 2013 1 次提交
    • R
      Add SubProtocolCapable interface · 4e82416b
      Rossen Stoyanchev 提交于
      The addition of SubProtocolCapable simplifies configuration since it is
      no longer necessary to explicitly configure DefaultHandshakeHandler
      with a list of supported sub-protocols. We will not also check if the
      WebSocketHandler to use for the WebSocket request is an instance of
      SubProtocolCapable and obtain the list of sub-protocols that way. The
      provided SubProtocolWebSocketHandler does implement this interface.
      
      Issue: SPR-11111
      4e82416b
  12. 24 11月, 2013 1 次提交
    • R
      Consolidate websocket/messaging code · 4de3291d
      Rossen Stoyanchev 提交于
      Before this change spring-messaging contained a few WebSocket-related
      classes including WebSocket sub-protocol support for STOMP as well
      as @EnableWebSocketMessageBroker and related configuration classes.
      
      After this change those classes are located in the spring-websocket
      module under org.springframework.web.socket.messaging.
      
      This means the following classes in application configuration must
      have their packages updated:
      
      org.springframework.web.socket.messaging.config.EnableWebSocketMessageBroker
      org.springframework.web.socket.messaging.config.StompEndpointRegistry
      org.springframework.web.socket.messaging.config.WebSocketMessageBrokerConfigurer
      
      MessageBrokerConfigurer has been renamed to MessageBrokerRegistry and
      is also located in the above package.
      4de3291d
  13. 29 8月, 2013 1 次提交
  14. 28 8月, 2013 1 次提交
  15. 14 8月, 2013 1 次提交
  16. 02 8月, 2013 1 次提交
    • A
      Introduce SubProtocolHandler abstraction · 9e20a256
      Andy Wilkinson 提交于
      Add SubProtocolHandler to encapsulate the logic for using a
      sub-protocol.
      
      A SubProtocolWebSocketHandler is also provided to
      delegate to the appropriate SubProtocolHandler based on the
      negotiated sub-protocol value at handshake.
      
      StompSubProtocolHandler provides handling for STOMP messages.
      
      Issue: SPR-10786
      9e20a256