public final class PerMessageDeflateServerExtensionHandshaker extends Object implements WebSocketServerExtensionHandshaker
Modifier and Type | Field and Description |
---|---|
static int |
MAX_WINDOW_SIZE |
static int |
MIN_WINDOW_SIZE |
Constructor and Description |
---|
PerMessageDeflateServerExtensionHandshaker()
Constructor with default configuration.
|
PerMessageDeflateServerExtensionHandshaker(int compressionLevel,
boolean allowServerWindowSize,
int preferredClientWindowSize,
boolean allowServerNoContext,
boolean preferredClientNoContext)
Constructor with custom configuration.
|
Modifier and Type | Method and Description |
---|---|
WebSocketServerExtension |
handshakeExtension(WebSocketExtensionData extensionData)
Handshake based on client request.
|
public static final int MIN_WINDOW_SIZE
public static final int MAX_WINDOW_SIZE
public PerMessageDeflateServerExtensionHandshaker()
public PerMessageDeflateServerExtensionHandshaker(int compressionLevel, boolean allowServerWindowSize, int preferredClientWindowSize, boolean allowServerNoContext, boolean preferredClientNoContext)
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).public WebSocketServerExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketServerExtensionHandshaker
handshakeExtension
in interface WebSocketServerExtensionHandshaker
extensionData
- the extension configuration sent by the client.Copyright © 2008–2015 The Netty Project. All rights reserved.