Modifier and Type | Field and Description |
---|---|
protected SpdyFrameDecoderDelegate |
delegate |
protected int |
spdyVersion |
Constructor and Description |
---|
SpdyFrameDecoder(SpdyVersion spdyVersion,
SpdyFrameDecoderDelegate delegate)
Creates a new instance with the specified
version
and the default maxChunkSize (8192) . |
SpdyFrameDecoder(SpdyVersion spdyVersion,
SpdyFrameDecoderDelegate delegate,
int maxChunkSize)
Creates a new instance with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(ByteBuf buffer) |
protected boolean |
decodeUnknownFrame(int frameType,
byte flags,
int length,
ByteBuf buffer)
Decode the unknown frame, returns true if parsed something, otherwise false.
|
protected boolean |
isValidUnknownFrameHeader(int streamId,
int type,
byte flags,
int length)
Check whether the unknown frame is valid, if not, the frame will be discarded,
otherwise, the frame will be passed to
decodeUnknownFrame(int, byte, int, ByteBuf) . |
protected final SpdyFrameDecoderDelegate delegate
protected final int spdyVersion
public SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate)
version
and the default maxChunkSize (8192)
.public SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate, int maxChunkSize)
public void decode(ByteBuf buffer)
protected boolean decodeUnknownFrame(int frameType, byte flags, int length, ByteBuf buffer)
protected boolean isValidUnknownFrameHeader(int streamId, int type, byte flags, int length)
decodeUnknownFrame(int, byte, int, ByteBuf)
.Copyright © 2008–2025 The Netty Project. All rights reserved.