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.
|
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 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–2015 The Netty Project. All rights reserved.