public final class DeflateFrameServerExtensionHandshaker extends java.lang.Object implements WebSocketServerExtensionHandshaker
Constructor and Description |
---|
DeflateFrameServerExtensionHandshaker()
具有默认配置的构造函数。
|
DeflateFrameServerExtensionHandshaker(int compressionLevel)
带自定义配置的构造函数。
|
Modifier and Type | Method and Description |
---|---|
WebSocketServerExtension |
handshakeExtension(WebSocketExtensionData extensionData)
基于客户请求的握手。
|
public DeflateFrameServerExtensionHandshaker()
public DeflateFrameServerExtensionHandshaker(int compressionLevel)
compressionLevel
- 0到9之间的压缩级别(默认值为6)。
public WebSocketServerExtension handshakeExtension(WebSocketExtensionData extensionData)
WebSocketServerExtensionHandshaker
handshakeExtension
在界面
WebSocketServerExtensionHandshaker
extensionData
- 客户端发送的扩展配置。
Copyright © 2008–2018 The Netty Project. All rights reserved.