Package io.netty.handler.codec.spdy
Class SpdyFrameDecoder
- java.lang.Object
-
- io.netty.handler.codec.spdy.SpdyFrameDecoder
-
public class SpdyFrameDecoder extends java.lang.ObjectDecodesByteBufs into SPDY Frames.
-
-
Field Summary
Fields Modifier and Type Field Description protected SpdyFrameDecoderDelegatedelegateprotected intspdyVersion
-
Constructor Summary
Constructors Constructor Description SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate)Creates a new instance with the specifiedversionand the defaultmaxChunkSize (8192).SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate, int maxChunkSize)Creates a new instance with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(ByteBuf buffer)protected booleandecodeUnknownFrame(int frameType, byte flags, int length, ByteBuf buffer)Decode the unknown frame, returns true if parsed something, otherwise false.protected booleanisValidUnknownFrameHeader(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 todecodeUnknownFrame(int, byte, int, ByteBuf).
-
-
-
Field Detail
-
delegate
protected final SpdyFrameDecoderDelegate delegate
-
spdyVersion
protected final int spdyVersion
-
-
Constructor Detail
-
SpdyFrameDecoder
public SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate)
Creates a new instance with the specifiedversionand the defaultmaxChunkSize (8192).
-
SpdyFrameDecoder
public SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate, int maxChunkSize)
Creates a new instance with the specified parameters.
-
-
Method Detail
-
decode
public void decode(ByteBuf buffer)
-
decodeUnknownFrame
protected boolean decodeUnknownFrame(int frameType, byte flags, int length, ByteBuf buffer)Decode the unknown frame, returns true if parsed something, otherwise false.
-
isValidUnknownFrameHeader
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 todecodeUnknownFrame(int, byte, int, ByteBuf).
-
-