Class SpdyHeaderBlockZlibDecoder
java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockDecoder
org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder
org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockZlibDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelBuffer
private final Inflater
private static final int
private static final SpdyProtocolException
-
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.private int
decompress
(SpdyHeadersFrame frame) void
end()
(package private) void
endHeaderBlock
(SpdyHeadersFrame frame) private void
private int
setInput
(ChannelBuffer compressed) Methods inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder
decodeHeaderBlock
Methods inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockDecoder
newInstance
-
Field Details
-
DEFAULT_BUFFER_CAPACITY
private static final int DEFAULT_BUFFER_CAPACITY- See Also:
-
INVALID_HEADER_BLOCK
-
decompressor
-
decompressed
-
-
Constructor Details
-
SpdyHeaderBlockZlibDecoder
SpdyHeaderBlockZlibDecoder(SpdyVersion spdyVersion, int maxHeaderSize)
-
-
Method Details
-
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.- Overrides:
decode
in classSpdyHeaderBlockRawDecoder
- 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.
-
setInput
-
decompress
- Throws:
Exception
-
ensureBuffer
private void ensureBuffer() -
endHeaderBlock
- Overrides:
endHeaderBlock
in classSpdyHeaderBlockRawDecoder
- Throws:
Exception
-
end
public void end()- Overrides:
end
in classSpdyHeaderBlockRawDecoder
-