Package io.netty.handler.codec.spdy
Class SpdyFrameDecoder
java.lang.Object
io.netty.handler.codec.spdy.SpdyFrameDecoder
Decodes
ByteBuf
s into SPDY Frames.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpdyFrameDecoderDelegate
private byte
private int
private final int
private int
private final int
private SpdyFrameDecoder.State
private int
-
Constructor Summary
ConstructorsConstructorDescriptionSpdyFrameDecoder
(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate) Creates a new instance with the specifiedversion
and the defaultmaxChunkSize (8192)
.SpdyFrameDecoder
(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate, int maxChunkSize) Creates a new instance with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
private static SpdyFrameDecoder.State
getNextState
(int type, int length) private static boolean
hasFlag
(byte flags, byte flag) private static boolean
isValidFrameHeader
(int streamId, int type, byte flags, int length)
-
Field Details
-
spdyVersion
private final int spdyVersion -
maxChunkSize
private final int maxChunkSize -
delegate
-
state
-
flags
private byte flags -
length
private int length -
streamId
private int streamId -
numSettings
private int numSettings
-
-
Constructor Details
-
SpdyFrameDecoder
Creates a new instance with the specifiedversion
and the defaultmaxChunkSize (8192)
. -
SpdyFrameDecoder
public SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate, int maxChunkSize) Creates a new instance with the specified parameters.
-
-
Method Details
-
decode
-
hasFlag
private static boolean hasFlag(byte flags, byte flag) -
getNextState
-
isValidFrameHeader
private static boolean isValidFrameHeader(int streamId, int type, byte flags, int length)
-