public final class PerMessageDeflateClientExtensionHandshaker extends Object implements WebSocketClientExtensionHandshaker
Constructor and Description |
---|
PerMessageDeflateClientExtensionHandshaker()
Constructor with default configuration.
|
PerMessageDeflateClientExtensionHandshaker(int compressionLevel,
boolean allowClientWindowSize,
int requestedServerWindowSize,
boolean allowClientNoContext,
boolean requestedServerNoContext)
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 PerMessageDeflateClientExtensionHandshaker()
public PerMessageDeflateClientExtensionHandshaker(int compressionLevel, boolean allowClientWindowSize, int requestedServerWindowSize, boolean allowClientNoContext, boolean requestedServerNoContext)
compressionLevel
- Compression level between 0 and 9 (default is 6).allowClientWindowSize
- allows WebSocket server to customize the client inflater window size
(default is false).requestedServerWindowSize
- indicates the requested sever window size to use if server inflater is customizable.allowClientNoContext
- allows WebSocket server to activate client_no_context_takeover
(default is false).requestedServerNoContext
- indicates if client needs to activate server_no_context_takeover
if server is compatible with (default is false).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–2017 The Netty Project. All rights reserved.