public final class DeflateFrameServerExtensionHandshaker extends Object implements WebSocketServerExtensionHandshaker
Constructor and Description |
---|
DeflateFrameServerExtensionHandshaker()
Constructor with default configuration.
|
DeflateFrameServerExtensionHandshaker(int compressionLevel)
Constructor with custom configuration.
|
DeflateFrameServerExtensionHandshaker(int compressionLevel,
WebSocketExtensionFilterProvider extensionFilterProvider)
Constructor with custom configuration.
|
Modifier and Type | Method and Description |
---|---|
WebSocketServerExtension |
handshakeExtension(WebSocketExtensionData extensionData)
Handshake based on client request.
|
public DeflateFrameServerExtensionHandshaker()
public DeflateFrameServerExtensionHandshaker(int compressionLevel)
compressionLevel
- Compression level between 0 and 9 (default is 6).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 WebSocketServerExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketServerExtensionHandshaker
handshakeExtension
in interface WebSocketServerExtensionHandshaker
extensionData
- the extension configuration sent by the client.Copyright © 2008–2024 The Netty Project. All rights reserved.