Class SpdyFrameDecoder
- java.lang.Object
-
- org.jboss.netty.handler.codec.spdy.SpdyFrameDecoder
-
public class SpdyFrameDecoder extends java.lang.Object
DecodesChannelBuffer
s into SPDY Frames.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SpdyFrameDecoder.State
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description SpdyFrameDecoder(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(ChannelBuffer 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)
-
-
-
Field Detail
-
spdyVersion
private final int spdyVersion
-
maxChunkSize
private final int maxChunkSize
-
delegate
private final SpdyFrameDecoderDelegate delegate
-
state
private SpdyFrameDecoder.State state
-
flags
private byte flags
-
length
private int length
-
streamId
private int streamId
-
numSettings
private int numSettings
-
-
Constructor Detail
-
SpdyFrameDecoder
public SpdyFrameDecoder(SpdyVersion spdyVersion, SpdyFrameDecoderDelegate delegate)
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 Detail
-
decode
public void decode(ChannelBuffer buffer)
-
hasFlag
private static boolean hasFlag(byte flags, byte flag)
-
getNextState
private static SpdyFrameDecoder.State getNextState(int type, int length)
-
isValidFrameHeader
private static boolean isValidFrameHeader(int streamId, int type, byte flags, int length)
-
-