Package io.netty.handler.codec.spdy
Class SpdyHeaderBlockZlibDecoder
java.lang.Object
io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder
io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder
io.netty.handler.codec.spdy.SpdyHeaderBlockZlibDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBuf
private final Inflater
private static final int
private static final SpdyProtocolException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
decode
(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.private int
decompress
(ByteBufAllocator alloc, SpdyHeadersFrame frame) void
end()
(package private) void
endHeaderBlock
(SpdyHeadersFrame frame) private void
ensureBuffer
(ByteBufAllocator alloc) private void
private int
Methods inherited from class io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder
decodeHeaderBlock
Methods inherited from class io.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:
alloc
- theByteBufAllocator
which can be used to allocate newByteBuf
sheaderBlock
- 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
-
endHeaderBlock
- Overrides:
endHeaderBlock
in classSpdyHeaderBlockRawDecoder
- Throws:
Exception
-
end
public void end()- Overrides:
end
in classSpdyHeaderBlockRawDecoder
-
releaseBuffer
private void releaseBuffer()
-