Class PerMessageDeflateServerExtensionHandshaker

    • Constructor Detail

      • PerMessageDeflateServerExtensionHandshaker

        public PerMessageDeflateServerExtensionHandshaker()
        Constructor with default configuration.
      • PerMessageDeflateServerExtensionHandshaker

        public PerMessageDeflateServerExtensionHandshaker​(int compressionLevel,
                                                          boolean allowServerWindowSize,
                                                          int preferredClientWindowSize,
                                                          boolean allowServerNoContext,
                                                          boolean preferredClientNoContext)
        Constructor with custom configuration.
        Parameters:
        compressionLevel - Compression level between 0 and 9 (default is 6).
        allowServerWindowSize - allows WebSocket client to customize the server inflater window size (default is false).
        preferredClientWindowSize - indicates the preferred client window size to use if client inflater is customizable.
        allowServerNoContext - allows WebSocket client to activate server_no_context_takeover (default is false).
        preferredClientNoContext - indicates if server prefers to activate client_no_context_takeover if client is compatible with (default is false).
      • PerMessageDeflateServerExtensionHandshaker

        public PerMessageDeflateServerExtensionHandshaker​(int compressionLevel,
                                                          boolean allowServerWindowSize,
                                                          int preferredClientWindowSize,
                                                          boolean allowServerNoContext,
                                                          boolean preferredClientNoContext,
                                                          WebSocketExtensionFilterProvider extensionFilterProvider)
        Constructor with custom configuration.
        Parameters:
        compressionLevel - Compression level between 0 and 9 (default is 6).
        allowServerWindowSize - allows WebSocket client to customize the server inflater window size (default is false).
        preferredClientWindowSize - indicates the preferred client window size to use if client inflater is customizable.
        allowServerNoContext - allows WebSocket client to activate server_no_context_takeover (default is false).
        preferredClientNoContext - indicates if server prefers to activate client_no_context_takeover if client is compatible with (default is false).
        extensionFilterProvider - provides server extension filters for per message deflate encoder and decoder.