public final class PerMessageDeflateServerExtensionHandshaker extends java.lang.Object implements WebSocketServerExtensionHandshaker
限定符和类型 | 字段和说明 |
---|---|
static int |
MAX_WINDOW_SIZE |
static int |
MIN_WINDOW_SIZE |
构造器和说明 |
---|
PerMessageDeflateServerExtensionHandshaker()
Constructor with default configuration.
|
PerMessageDeflateServerExtensionHandshaker(int compressionLevel,
boolean allowServerWindowSize,
int preferredClientWindowSize,
boolean allowServerNoContext,
boolean preferredClientNoContext)
Constructor with custom configuration.
|
PerMessageDeflateServerExtensionHandshaker(int compressionLevel,
boolean allowServerWindowSize,
int preferredClientWindowSize,
boolean allowServerNoContext,
boolean preferredClientNoContext,
WebSocketExtensionFilterProvider extensionFilterProvider)
Constructor with custom configuration.
|
限定符和类型 | 方法和说明 |
---|---|
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 PerMessageDeflateServerExtensionHandshaker(int compressionLevel, boolean allowServerWindowSize, int preferredClientWindowSize, boolean allowServerNoContext, boolean preferredClientNoContext, WebSocketExtensionFilterProvider extensionFilterProvider)
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.public WebSocketServerExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketServerExtensionHandshaker
handshakeExtension
在接口中 WebSocketServerExtensionHandshaker
extensionData
- the extension configuration sent by the client.