Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-294

Make WebSocketHttpExchange.getSession() return something useful

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.1.Beta7
    • None
    • None
    • None

    Description

      It doesn't currently seem to be used by anything, but I have a use for it. How would you feel about adding a boolean param like for a servlet's request that determines whether the session is created or not? Seems like the AsyncWebSocketHttpServerExchange could then check for a SessionManager attachment and return null if not there. Otherwise, it could call Sessions.getSession or getOrCreateSession depending on the passed boolean, using its HttpServerExchange member.

      If that makes sense, I can work up a PR.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            jcrossle@redhat.com Jim Crossley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: