public class WebSocket13FrameDecoder extends WebSocket08FrameDecoder
ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
Constructor and Description |
---|
WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength)
构造函数
|
WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength, boolean allowMaskMismatch)
构造函数
|
checkCloseFrameBody, decode
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved
public WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength)
expectMaskedFrames
- Web套接字服务器必须将其设置为真正处理的传入掩码有效内容。
客户端实现必须将其设置为false。
allowExtensions
- 允许使用或不使用保留扩展位的标志
maxFramePayloadLength
- 帧有效负载的最大长度。
将其设置为适合您的应用程序有助于检查拒绝服务攻击。
public WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength, boolean allowMaskMismatch)
expectMaskedFrames
- Web套接字服务器必须将其设置为真正处理的传入掩码有效内容。
客户端实现必须将其设置为false。
allowExtensions
- 允许使用或不使用保留扩展位的标志
maxFramePayloadLength
- 帧的有效载荷的最大长度。
将其设置为适合您的应用程序有助于检查拒绝服务攻击。
allowMaskMismatch
- When set to true, frames which are not masked properly according to the standard will still be accepted.
Copyright © 2008–2018 The Netty Project. All rights reserved.