public class SpdyHeaderBlockRawDecoder extends SpdyHeaderBlockDecoder
| Modifier and Type | Class and Description |
|---|---|
private static class |
SpdyHeaderBlockRawDecoder.State |
| Modifier and Type | Field and Description |
|---|---|
private ChannelBuffer |
cumulation |
private int |
headerSize |
private int |
length |
private static int |
LENGTH_FIELD_SIZE |
private int |
maxHeaderSize |
private java.lang.String |
name |
private int |
numHeaders |
private SpdyHeaderBlockRawDecoder.State |
state |
| Constructor and Description |
|---|
SpdyHeaderBlockRawDecoder(SpdyVersion spdyVersion,
int maxHeaderSize) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
decode(ChannelBuffer headerBlock,
SpdyHeadersFrame frame)
Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.
|
protected void |
decodeHeaderBlock(ChannelBuffer headerBlock,
SpdyHeadersFrame frame) |
(package private) void |
end() |
(package private) void |
endHeaderBlock(SpdyHeadersFrame frame) |
private int |
readLengthField(ChannelBuffer buffer) |
newInstanceprivate static final int LENGTH_FIELD_SIZE
private final int maxHeaderSize
private SpdyHeaderBlockRawDecoder.State state
private ChannelBuffer cumulation
private int headerSize
private int numHeaders
private int length
private java.lang.String name
public SpdyHeaderBlockRawDecoder(SpdyVersion spdyVersion, int maxHeaderSize)
private int readLengthField(ChannelBuffer buffer)
void decode(ChannelBuffer headerBlock, SpdyHeadersFrame frame) throws java.lang.Exception
SpdyHeaderBlockDecoderdecode in class SpdyHeaderBlockDecoderheaderBlock - the HeaderBlock to decodeframe - the Headers frame that receives the Name/Value pairsjava.lang.Exception - If the header block is malformed in a way that prevents any future
decoding of any other header blocks, an exception will be thrown.
A session error with status code PROTOCOL_ERROR must be issued.protected void decodeHeaderBlock(ChannelBuffer headerBlock, SpdyHeadersFrame frame) throws java.lang.Exception
java.lang.Exceptionvoid endHeaderBlock(SpdyHeadersFrame frame) throws java.lang.Exception
endHeaderBlock in class SpdyHeaderBlockDecoderjava.lang.Exceptionvoid end()
end in class SpdyHeaderBlockDecoder