public final class DeflateFrameClientExtensionHandshaker extends java.lang.Object implements WebSocketClientExtensionHandshaker
构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 WebSocketClientExtensionHandshaker
public WebSocketClientExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketClientExtensionHandshaker
handshakeExtension
在接口中 WebSocketClientExtensionHandshaker
extensionData
- the extension configuration sent by the server.