类 WebSocketExtension

  • 直接已知子类:
    StandardToWebSocketExtensionAdapter

    public class WebSocketExtension
    extends Object
    Represents a WebSocket extension as defined in the RFC 6455. WebSocket extensions add protocol features to the WebSocket protocol. The extensions used within a session are negotiated during the handshake phase as follows:
    • the client may ask for specific extensions in the HTTP handshake request
    • the server responds with the final list of extensions to use in the current session

    WebSocket Extension HTTP headers may include parameters and follow RFC 7230 section 3.2

    Note that the order of extensions in HTTP headers defines their order of execution, e.g. extensions "foo, bar" will be executed as "bar(foo(message))".

    从以下版本开始:
    4.0
    作者:
    Brian Clozel, Juergen Hoeller
    另请参阅:
    WebSocket Protocol Extensions, RFC 6455 - Section 9