public final class DeflateFrameServerExtensionHandshaker extends java.lang.Object implements WebSocketServerExtensionHandshaker
构造器和说明 |
---|
DeflateFrameServerExtensionHandshaker()
Constructor with default configuration.
|
DeflateFrameServerExtensionHandshaker(int compressionLevel)
Constructor with custom configuration.
|
DeflateFrameServerExtensionHandshaker(int compressionLevel,
WebSocketExtensionFilterProvider extensionFilterProvider)
Constructor with custom configuration.
|
限定符和类型 | 方法和说明 |
---|---|
WebSocketServerExtension |
handshakeExtension(WebSocketExtensionData extensionData)
Handshake based on client request.
|
public DeflateFrameServerExtensionHandshaker()
public DeflateFrameServerExtensionHandshaker(int compressionLevel)
compressionLevel
- Compression level between 0 and 9 (default is 6).public DeflateFrameServerExtensionHandshaker(int compressionLevel, WebSocketExtensionFilterProvider extensionFilterProvider)
compressionLevel
- Compression level between 0 and 9 (default is 6).extensionFilterProvider
- provides server extension filters for per frame deflate encoder and decoder.public WebSocketServerExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketServerExtensionHandshaker
handshakeExtension
在接口中 WebSocketServerExtensionHandshaker
extensionData
- the extension configuration sent by the client.