public class SpdyFrameDecoder
extends java.lang.Object
ByteBuf
s into SPDY Frames.Modifier and Type | Class and Description |
---|---|
private static class |
SpdyFrameDecoder.State |
Modifier and Type | Field and Description |
---|---|
private SpdyFrameDecoderDelegate |
delegate |
private byte |
flags |
private int |
length |
private int |
maxChunkSize |
private int |
numSettings |
private int |
spdyVersion |
private SpdyFrameDecoder.State |
state |
private int |
streamId |
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) |
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) |
private final int spdyVersion
private final int maxChunkSize
private final SpdyFrameDecoderDelegate delegate
private SpdyFrameDecoder.State state
private byte flags
private int length
private int streamId
private int numSettings
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)
private static boolean hasFlag(byte flags, byte flag)
private static SpdyFrameDecoder.State getNextState(int type, int length)
private static boolean isValidFrameHeader(int streamId, int type, byte flags, int length)