Add support for WebSocket Protocol Extensions

This commits adds simple, overridable WebSocket Extension
filtering during the handshake phase and adds that
information in the WebSocket session.

The actual WebSocket Extension negotiation happens
within the server implementation (Glassfish, Jetty, Tomcat...),
so one can only remove requested extensions from
the list provided by the WebSocket client.

See RFC6455 Section 9.

Issue: SPR-10843
This commit is contained in:
Brian Clozel
2013-10-24 11:28:21 +02:00
committed by Rossen Stoyanchev
parent 78c10cd242
commit 6d00a3f0ee
17 changed files with 441 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ public interface SubProtocolHandler {
/**
* Resolve the session id from the given message or return {@code null}.
*
* @param the message to resolve the session id from
* @param message the message to resolve the session id from
*/
String resolveSessionId(Message<?> message);