public final class DeflateFrameClientExtensionHandshaker extends Object implements WebSocketClientExtensionHandshaker
Constructor and Description |
---|
DeflateFrameClientExtensionHandshaker(boolean useWebkitExtensionName)
Constructor with default configuration.
|
DeflateFrameClientExtensionHandshaker(int compressionLevel,
boolean useWebkitExtensionName)
Constructor with custom configuration.
|
DeflateFrameClientExtensionHandshaker(int compressionLevel,
boolean useWebkitExtensionName,
WebSocketExtensionFilterProvider extensionFilterProvider)
Constructor with custom configuration.
|
Modifier and Type | Method and Description |
---|---|
WebSocketClientExtension |
handshakeExtension(WebSocketExtensionData extensionData)
Handshake based on server response.
|
WebSocketExtensionData |
newRequestData()
Return extension configuration to submit to the server.
|
public DeflateFrameClientExtensionHandshaker(boolean useWebkitExtensionName)
public DeflateFrameClientExtensionHandshaker(int compressionLevel, boolean useWebkitExtensionName)
compressionLevel
- Compression level between 0 and 9 (default is 6).public DeflateFrameClientExtensionHandshaker(int compressionLevel, boolean useWebkitExtensionName, WebSocketExtensionFilterProvider extensionFilterProvider)
compressionLevel
- Compression level between 0 and 9 (default is 6).extensionFilterProvider
- provides client extension filters for per frame deflate encoder and decoder.public WebSocketExtensionData newRequestData()
WebSocketClientExtensionHandshaker
newRequestData
in interface WebSocketClientExtensionHandshaker
public WebSocketClientExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketClientExtensionHandshaker
handshakeExtension
in interface WebSocketClientExtensionHandshaker
extensionData
- the extension configuration sent by the server.Copyright © 2008–2024 The Netty Project. All rights reserved.