Skip to content

Commit

Permalink
Add paragraph briefly describing new HttpSession.getAccessor() method
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Mar 26, 2024
1 parent ef32134 commit 30a0491
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/src/main/asciidoc/WebSocket.adoc
Expand Up @@ -1400,6 +1400,12 @@ with the requesting client, the WebSocket implementation considers the
user *Principal* for the associated WebSocket *Session* to be the user
*Principal* that was present on the opening handshake [WSC-7.2-2].

If a WebSocket endpoint has a requirement to interact with the HTTP session
outside of the opening handshake, then the developer may call
*HttpSession.getAccessor()* during the opening handshake and then use the
provided *Accessor* instance to interact with the *HttpSession* until the
session is invalidated or the session's ID is changed.

In the case where a WebSocket endpoint is a protected resource in the
web application (see <<security>>), that is to say, requires an
authorized user to access it, then the WebSocket implementation must
Expand Down

0 comments on commit 30a0491

Please sign in to comment.