Class SpdyFrameDecoder
java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyFrameDecoder
Decodes
ChannelBuffers into SPDY Frames.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpdyFrameDecoderDelegateprivate byteprivate intprivate final intprivate intprivate final intprivate SpdyFrameDecoder.Stateprivate int -
Constructor Summary
ConstructorsConstructorDescriptionSpdyFrameDecoder(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
Modifier and TypeMethodDescriptionvoiddecode(ChannelBuffer buffer) private static SpdyFrameDecoder.StategetNextState(int type, int length) private static booleanhasFlag(byte flags, byte flag) private static booleanisValidFrameHeader(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 specifiedversionand 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)
-