Class SpdyHeaderBlockRawDecoder
java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockDecoder
org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder
- Direct Known Subclasses:
SpdyHeaderBlockZlibDecoder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelBuffer
private int
private int
private static final int
private final int
private String
private int
private SpdyHeaderBlockRawDecoder.State
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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) Methods inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockDecoder
newInstance
-
Field Details
-
LENGTH_FIELD_SIZE
private static final int LENGTH_FIELD_SIZE- See Also:
-
maxHeaderSize
private final int maxHeaderSize -
state
-
cumulation
-
headerSize
private int headerSize -
numHeaders
private int numHeaders -
length
private int length -
name
-
-
Constructor Details
-
SpdyHeaderBlockRawDecoder
-
-
Method Details
-
readLengthField
-
decode
Description copied from class:SpdyHeaderBlockDecoder
Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame. If the header block is malformed, the Headers frame will be marked as invalid. A stream error with status code PROTOCOL_ERROR must be issued in response to an invalid frame.- Specified by:
decode
in classSpdyHeaderBlockDecoder
- Parameters:
headerBlock
- the HeaderBlock to decodeframe
- the Headers frame that receives the Name/Value pairs- Throws:
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.
-
decodeHeaderBlock
protected void decodeHeaderBlock(ChannelBuffer headerBlock, SpdyHeadersFrame frame) throws Exception - Throws:
Exception
-
endHeaderBlock
- Specified by:
endHeaderBlock
in classSpdyHeaderBlockDecoder
- Throws:
Exception
-
end
void end()- Specified by:
end
in classSpdyHeaderBlockDecoder
-