public final class PerMessageDeflateClientExtensionHandshaker extends java.lang.Object implements WebSocketClientExtensionHandshaker
构造器和说明 |
---|
PerMessageDeflateClientExtensionHandshaker()
Constructor with default configuration.
|
PerMessageDeflateClientExtensionHandshaker(int compressionLevel,
boolean allowClientWindowSize,
int requestedServerWindowSize,
boolean allowClientNoContext,
boolean requestedServerNoContext)
Constructor with custom configuration.
|
PerMessageDeflateClientExtensionHandshaker(int compressionLevel,
boolean allowClientWindowSize,
int requestedServerWindowSize,
boolean allowClientNoContext,
boolean requestedServerNoContext,
WebSocketExtensionFilterProvider extensionFilterProvider)
Constructor with custom configuration.
|
限定符和类型 | 方法和说明 |
---|---|
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 PerMessageDeflateClientExtensionHandshaker(int compressionLevel, boolean allowClientWindowSize, int requestedServerWindowSize, boolean allowClientNoContext, boolean requestedServerNoContext, WebSocketExtensionFilterProvider extensionFilterProvider)
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).extensionFilterProvider
- provides client extension filters for per message deflate encoder and decoder.public WebSocketExtensionData newRequestData()
WebSocketClientExtensionHandshaker
newRequestData
在接口中 WebSocketClientExtensionHandshaker
public WebSocketClientExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketClientExtensionHandshaker
handshakeExtension
在接口中 WebSocketClientExtensionHandshaker
extensionData
- the extension configuration sent by the server.