1. 23 5月, 2015 1 次提交
  2. 13 5月, 2015 1 次提交
  3. 04 5月, 2015 1 次提交
  4. 01 4月, 2015 1 次提交
    • B
      Fix client-library-url ignored in MVC namespace · e2a55ced
      Brian Clozel 提交于
      Prior to this commit, the `client-library-url` XML attribute was not
      effective in the MVC namespace, leaving the default value configured:
      
      ```xml
      <websocket:sockjs client-library-url="/js/sockjs.js" />
      ```
      
      This commit fixes the sockjs namespace handler and makes sure that this
      attribute is configured on the `SockJsService` Bean to be created.
      
      Issue: SPR-12874
      e2a55ced
  5. 25 3月, 2015 1 次提交
  6. 28 2月, 2015 1 次提交
  7. 19 2月, 2015 5 次提交
  8. 17 2月, 2015 1 次提交
    • R
      Pass SockJS session attributes to HandshakeHandler · f398dd03
      Rossen Stoyanchev 提交于
      Before this change the WebSocketTransportHandler passed
      Collections.emptyMap as attributes to the HandshakeHandler because
      it didn't matter what attributes the underlying WebSocketSession has
      since it is wrapped by the SockJsSession and that's what exposed for
      use everywhere.
      
      This change has the WebSocketTransportHandler passing the attributes
      from the SockJsSession instead since it's more accurate for the
      underlying WebSocketSession to have access to the same map instance
      and it allows the HandshakeHandler to change the attributes even if
      it doesn't need to do that today.
      
      Issue: SPR-12716
      f398dd03
  9. 23 1月, 2015 1 次提交
  10. 30 12月, 2014 1 次提交
  11. 24 12月, 2014 1 次提交
  12. 08 12月, 2014 1 次提交
  13. 06 12月, 2014 1 次提交
    • S
      Add support for autowiring Jackson handlers · 2fccf3ff
      Sebastien Deleuze 提交于
      This commit introduces the SpringHandlerInstantiator
      class, a Jackson HandlerInstantiator that allows to autowire
      Jackson handlers (JsonSerializer, JsonDeserializer, KeyDeserializer,
      TypeResolverBuilder and TypeIdResolver) if needed.
      
      SpringHandlerInstantiator is automatically used with
      @EnableWebMvc and <mvc:annotation-driven />.
      
      Issue: SPR-10768
      2fccf3ff
  14. 03 12月, 2014 2 次提交
    • S
      Use Jackson improved default configuration everywhere · fbd85925
      Sebastien Deleuze 提交于
      With this commit, Jackson builder is now used in spring-websocket
      to create the ObjectMapper instance.
      
      It is not possible to use the builder for spring-messaging
      and spring-jms since these modules don't have a dependency on
      spring-web, thus they now just customize the same features:
       - MapperFeature#DEFAULT_VIEW_INCLUSION is disabled
       - DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES is disabled
      
      Issue: SPR-12293
      fbd85925
    • R
      Check the user of a SockJS request · dc5b5ca8
      Rossen Stoyanchev 提交于
      Issue: SPR-12497
      dc5b5ca8
  15. 29 11月, 2014 1 次提交
  16. 28 11月, 2014 1 次提交
  17. 24 11月, 2014 1 次提交
    • B
      Add undertow 1.1.0.Final support · bb150c47
      Brian Clozel 提交于
      Upgrade undertow dependency to 1.1.0.Final.
      Add support for undertow 1.1.0.Final in the
      UndertowRequestUpgradeStrategy, after a breaking change in the
      `io.undertow.websockets.jsr.ConfiguredServerEndpoint` constructor.
      
      Issue: SPR-12302
      bb150c47
  18. 11 11月, 2014 1 次提交
  19. 08 11月, 2014 1 次提交
  20. 03 11月, 2014 1 次提交
    • B
      Fix SubProtocolHandler duplicate registration · 1fff631d
      Brian Clozel 提交于
      Prior to this change, duplicate SubProtocolHandlers could be registered
      when configuring STOMP with several registrations:
      
          public void registerStompEndpoints
                (final StompEndpointRegistry registry) {
            this.endpointRegistry.addEndpoint("/stompOverWebSocket");
            this.endpointRegistry.addEndpoint("/stompOverSockJS").withSockJS();
          }
      
      This commit registers sub-protocols in a Set instead of a list (see
      SubProtocolWebSocketHandler), thus fixing the issue.
      
      Issue: SPR-12403
      1fff631d
  21. 01 11月, 2014 1 次提交
  22. 30 10月, 2014 1 次提交
  23. 29 10月, 2014 1 次提交
  24. 27 10月, 2014 4 次提交
    • R
      Replace "if(" with "if (" · da612d07
      Rossen Stoyanchev 提交于
      da612d07
    • S
      Fix a package tangle between SockJS support and transport packages · 6592784e
      Sebastien Deleuze 提交于
      Issue: SPR-12379
      6592784e
    • S
      Add an option to disable automatic addition of CORS header · 58f4014b
      Sebastien Deleuze 提交于
      Issues: SPR-12283
      58f4014b
    • S
      Add an option to set an Origin whitelist for Websocket and SockJS · 743356fa
      Sebastien Deleuze 提交于
      This commit introduces a new OriginHandshakeInterceptor. It filters
      Origin header value against a list of allowed origins.
      
      AbstractSockJsService as been modified to:
       - Reject CORS requests with forbidden origins
       - Disable transport types that does not support CORS when an origin
         check is required
       - Use the Origin request header value instead of "*" for
         Access-Control-Allow-Origin response header value
         (mandatory when  Access-Control-Allow-Credentials=true)
       - Return CORS header only if the request contains an Origin header
      
      It is possible to configure easily this behavior thanks to JavaConfig API
      WebSocketHandlerRegistration#addAllowedOrigins(String...) and
      StompWebSocketEndpointRegistration#addAllowedOrigins(String...).
      It is also possible to configure it using the websocket XML namespace.
      
      Please notice that this commit does not change the default behavior:
      cross origin requests are still enabled by default.
      
      Issues: SPR-12226
      743356fa
  25. 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
  26. 22 10月, 2014 1 次提交
  27. 21 10月, 2014 2 次提交
  28. 20 10月, 2014 2 次提交
  29. 14 10月, 2014 1 次提交