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 ChannelBufferprivate final Inflaterprivate static final intprivate static final SpdyProtocolException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voiddecode(ChannelBuffer headerBlock, SpdyHeadersFrame frame) Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.private intdecompress(SpdyHeadersFrame frame) voidend()(package private) voidendHeaderBlock(SpdyHeadersFrame frame) private voidprivate intsetInput(ChannelBuffer compressed) Methods inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder
decodeHeaderBlockMethods 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:SpdyHeaderBlockDecoderDecodes 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:
decodein 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:
endHeaderBlockin classSpdyHeaderBlockRawDecoder- Throws:
Exception
-
end
public void end()- Overrides:
endin classSpdyHeaderBlockRawDecoder
-