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 .
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final String | |
| private static final String | |
| private boolean | |
| private boolean | |
| public static final int | DEFAULT_DEFLATER
Default configuration for DEFLATE algorithm implementation |
| private final int | |
| private final Set | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PerMessageDeflateHandshake(final boolean
indicate if extension is configured in client ( client)true ) context or server (false ) context.Create a new |
| public | PerMessageDeflateHandshake(final boolean
indicate if extension is configured in client ( client, final int true ) context or server (false ) contextthe level of configuration of DEFLATE algorithm implementation deflaterLevel)Create a new |
| public | PerMessageDeflateHandshake(final boolean
flag for client ( client, boolean true ) context or server (false ) contextflag for compressor context takeover or without compressor context compressContextTakeover, boolean flag for decompressor context takeover or without decompressor context decompressContextTakeover)Create a new |
| public | PerMessageDeflateHandshake(final boolean
flag for client ( client, final int true ) context or server (false ) contextthe level of configuration of DEFLATE algorithm implementation deflaterLevel, boolean flag for compressor context takeover or without compressor context compressContextTakeover, boolean flag for decompressor context takeover or without decompressor context decompressContextTakeover)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public WebSocketExtension | accept(final WebSocketExtension
the extension request representation extension)Implements io. Validate if an extension request is accepted. |
| public ExtensionFunction | create()
Implements io. Create a new instance of the |
| public String | |
| public boolean | isIncompatible(List<ExtensionHandshake>
a list of negotiated extensions extensions)Implements io. Validate if current extension is compatible with previously negotiated in the server side. |
| client | back to summary |
|---|---|
| private final boolean client | |
| CLIENT_MAX_WINDOW_BITS | back to summary |
|---|---|
| private static final String CLIENT_MAX_WINDOW_BITS | |
| CLIENT_NO_CONTEXT_TAKEOVER | back to summary |
|---|---|
| private static final String CLIENT_NO_CONTEXT_TAKEOVER | |
| compressContextTakeover | back to summary |
|---|---|
| private boolean compressContextTakeover | |
| decompressContextTakeover | back to summary |
|---|---|
| private boolean decompressContextTakeover | |
| DEFAULT_DEFLATER | back to summary |
|---|---|
| public static final int DEFAULT_DEFLATER Default configuration for DEFLATE algorithm implementation | |
| deflaterLevel | back to summary |
|---|---|
| private final int deflaterLevel | |
| incompatibleExtensions | back to summary |
|---|---|
| private final Set<String> incompatibleExtensions | |
| PERMESSAGE_DEFLATE | back to summary |
|---|---|
| private static final String PERMESSAGE_DEFLATE | |
| SERVER_MAX_WINDOW_BITS | back to summary |
|---|---|
| private static final String SERVER_MAX_WINDOW_BITS | |
| SERVER_NO_CONTEXT_TAKEOVER | back to summary |
|---|---|
| private static final String SERVER_NO_CONTEXT_TAKEOVER | |
| PerMessageDeflateHandshake | back to summary |
|---|---|
| public PerMessageDeflateHandshake() | |
| PerMessageDeflateHandshake | back to summary |
|---|---|
| public PerMessageDeflateHandshake(final boolean client) Create a new
| |
| PerMessageDeflateHandshake | back to summary |
|---|---|
| public PerMessageDeflateHandshake(final boolean client, final int deflaterLevel) Create a new
| |
| PerMessageDeflateHandshake | back to summary |
|---|---|
| public PerMessageDeflateHandshake(final boolean client, boolean compressContextTakeover, boolean decompressContextTakeover) Create a new
| |
| PerMessageDeflateHandshake | back to summary |
|---|---|
| public PerMessageDeflateHandshake(final boolean client, final int deflaterLevel, boolean compressContextTakeover, boolean decompressContextTakeover) Create a new
| |
| accept | back to summary |
|---|---|
| public WebSocketExtension accept(final WebSocketExtension extension) Implements io. Doc from io. Validate if an extension request is accepted.
| |
| create | back to summary |
|---|---|
| public ExtensionFunction create() Implements io. Doc from io. Create a new instance of the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements io.
| |
| isIncompatible | back to summary |
|---|---|
| public boolean isIncompatible(List<ExtensionHandshake> extensions) Implements io. Doc from io. Validate if current extension is compatible with previously negotiated in the server side.
| |