Spring Framework
  1. Spring Framework
  2. SPR-10624

Provide access to attributes from the handshake HTTP session

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 4.0 M2
    • Fix Version/s: 4.0 M3
    • Component/s: Messaging:WebSocket
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      WebSocketSession should provide access to attributes from the HTTP session of the initial handshake request. Since WebSocketSession can be used on the client side as well, it should probably be a general mechanism for initialzing a map of attributes from some source before the session starts.

        Activity

        Hide
        Rossen Stoyanchev added a comment -

        WebSocketSession now has a handshakeAttributes property. By default it is empty but can be populated with anything, including HTTP session attributes, by configuring a HandshakeInterceptor. There is a concrete interceptor that can copies all or a subset of the HTTP session attributes.

        Show
        Rossen Stoyanchev added a comment - WebSocketSession now has a handshakeAttributes property. By default it is empty but can be populated with anything, including HTTP session attributes, by configuring a HandshakeInterceptor. There is a concrete interceptor that can copies all or a subset of the HTTP session attributes.

          People

          • Assignee:
            Rossen Stoyanchev
            Reporter:
            Rossen Stoyanchev
            Last updater:
            Phil Webb
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              36 weeks ago