public final class DeflateFrameServerExtensionHandshaker extends Object implements WebSocketServerExtensionHandshaker
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COMPRESSION_LEVEL |
Constructor and Description |
---|
DeflateFrameServerExtensionHandshaker()
Deprecated.
|
DeflateFrameServerExtensionHandshaker(int compressionLevel)
Deprecated.
|
DeflateFrameServerExtensionHandshaker(int compressionLevel,
int maxAllocation)
Constructor with custom configuration.
|
DeflateFrameServerExtensionHandshaker(int compressionLevel,
WebSocketExtensionFilterProvider extensionFilterProvider)
|
DeflateFrameServerExtensionHandshaker(int compressionLevel,
WebSocketExtensionFilterProvider extensionFilterProvider,
int maxAllocation)
Constructor with custom configuration.
|
Modifier and Type | Method and Description |
---|---|
WebSocketServerExtension |
handshakeExtension(WebSocketExtensionData extensionData)
Handshake based on client request.
|
public static final int DEFAULT_COMPRESSION_LEVEL
@Deprecated public DeflateFrameServerExtensionHandshaker()
DeflateFrameServerExtensionHandshaker(int, int)
with DEFAULT_COMPRESSION_LEVEL
.@Deprecated public DeflateFrameServerExtensionHandshaker(int compressionLevel)
DeflateFrameServerExtensionHandshaker(int, int)
.compressionLevel
- Compression level between 0 and 9 (default is 6).public DeflateFrameServerExtensionHandshaker(int compressionLevel, int maxAllocation)
compressionLevel
- Compression level between 0 and 9 (default is 6).maxAllocation
- Maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.@Deprecated public DeflateFrameServerExtensionHandshaker(int compressionLevel, WebSocketExtensionFilterProvider extensionFilterProvider)
compressionLevel
- Compression level between 0 and 9 (default is 6).extensionFilterProvider
- provides server extension filters for per frame deflate encoder and decoder.public DeflateFrameServerExtensionHandshaker(int compressionLevel, WebSocketExtensionFilterProvider extensionFilterProvider, int maxAllocation)
compressionLevel
- Compression level between 0 and 9 (default is 6).extensionFilterProvider
- provides server extension filters for per frame deflate encoder and decoder.maxAllocation
- Maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.public WebSocketServerExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketServerExtensionHandshaker
handshakeExtension
in interface WebSocketServerExtensionHandshaker
extensionData
- the extension configuration sent by the client.Copyright © 2008–2025 The Netty Project. All rights reserved.