This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat-training.git
commit 1ad620eb298db6fc62d93fe3ec698d38cae20b8a Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Oct 2 16:40:18 2024 +0100 Add code example for HttpSession.getAccessor() --- modules/tomcat-11-jakarta-ee-11.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/tomcat-11-jakarta-ee-11.html b/modules/tomcat-11-jakarta-ee-11.html index 58cc048..1143404 100644 --- a/modules/tomcat-11-jakarta-ee-11.html +++ b/modules/tomcat-11-jakarta-ee-11.html @@ -54,6 +54,21 @@ <section> <h3>Changes - Jakarta Servlet - 6.1</h3> <p>Safe HTTP session access for WebSocket</p> + <pre> + <code data-noescape> +public interface HttpSession { + ... + Accessor getAccessor(); + + interface Accessor { + void access(Consumer<HttpSession> sessionConsumer); + } +} +</code> + </pre> +</section> +<section> + <h3>Changes - Jakarta Servlet - 6.1</h3> <p>Invalid request parameters will always trigger an exception</p> <p>HTTP/2 server push is deprecated <p>Lots of clarifications</p> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org