Class PerMessageDeflateHandshake

java.lang.Object
io.undertow.websockets.extensions.PerMessageDeflateHandshake
All Implemented Interfaces:
ExtensionHandshake

public class PerMessageDeflateHandshake extends Object implements ExtensionHandshake
Implementation of permessage-deflate WebSocket Extension handshake.

This implementation supports parameters: server_no_context_takeover, client_no_context_takeover .

This implementation does not support parameters: server_max_window_bits, client_max_window_bits .

Author:
Lucas Ponce
See Also:
  • Field Details

    • DEFAULT_DEFLATER

      public static final int DEFAULT_DEFLATER
      Default configuration for DEFLATE algorithm implementation
      See Also:
  • Constructor Details

    • PerMessageDeflateHandshake

      public PerMessageDeflateHandshake()
    • PerMessageDeflateHandshake

      public PerMessageDeflateHandshake(boolean client)
      Create a new PerMessageDeflateHandshake instance.
      Parameters:
      client - indicate if extension is configured in client (true ) context or server (false ) context.
    • PerMessageDeflateHandshake

      public PerMessageDeflateHandshake(boolean client, int deflaterLevel)
      Create a new PerMessageDeflateHandshake instance.
      Parameters:
      client - indicate if extension is configured in client (true ) context or server (false ) context
      deflaterLevel - the level of configuration of DEFLATE algorithm implementation
    • PerMessageDeflateHandshake

      public PerMessageDeflateHandshake(boolean client, boolean compressContextTakeover, boolean decompressContextTakeover)
      Create a new PerMessageDeflateHandshake instance.
      Parameters:
      client - flag for client (true ) context or server (false ) context
      compressContextTakeover - flag for compressor context takeover or without compressor context
      decompressContextTakeover - flag for decompressor context takeover or without decompressor context
    • PerMessageDeflateHandshake

      public PerMessageDeflateHandshake(boolean client, int deflaterLevel, boolean compressContextTakeover, boolean decompressContextTakeover)
      Create a new PerMessageDeflateHandshake instance.
      Parameters:
      client - flag for client (true ) context or server (false ) context
      deflaterLevel - the level of configuration of DEFLATE algorithm implementation
      compressContextTakeover - flag for compressor context takeover or without compressor context
      decompressContextTakeover - flag for decompressor context takeover or without decompressor context
  • Method Details