public class WebSocket07FrameDecoder extends WebSocket08FrameDecoder
ByteToMessageDecoder.CumulatorChannelHandler.SharableCOMPOSITE_CUMULATOR, MERGE_CUMULATOR| Constructor and Description |
|---|
WebSocket07FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength)
构造函数
|
WebSocket07FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength, boolean allowMaskMismatch)
构造函数
|
checkCloseFrameBody, decodeactualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemovedpublic WebSocket07FrameDecoder(boolean expectMaskedFrames,
boolean allowExtensions,
int maxFramePayloadLength)
expectMaskedFrames - Web套接字服务器必须将其设置为真正处理的传入掩码有效内容。
客户端实现必须将其设置为false。
allowExtensions - 允许使用或不使用保留扩展位的标志
maxFramePayloadLength - 帧有效负载的最大长度。
将其设置为适合您的应用程序有助于检查拒绝服务攻击。
public WebSocket07FrameDecoder(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.