Top Inners Fields Constructors Methods
io.netty.handler.codec.spdy

public Class SpdyHeaderBlockRawDecoder

extends SpdyHeaderBlockDecoder
Class Inheritance
Known Direct Subclasses
io.netty.handler.codec.spdy.SpdyHeaderBlockZlibDecoder
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, io.netty.util.internal.ObjectUtil

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private ByteBuf
private int
private int
private static final int
private final int
private String
private int
private SpdyHeaderBlockRawDecoder.State

Constructor Summary

AccessConstructor and Description
public
SpdyHeaderBlockRawDecoder(SpdyVersion spdyVersion, int maxHeaderSize)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
decode(ByteBufAllocator
the ByteBufAllocator which can be used to allocate new ByteBufs
alloc
,
ByteBuf
the HeaderBlock to decode
headerBlock
,
SpdyHeadersFrame
the Headers frame that receives the Name/Value pairs
frame
)

Implements abstract io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder.decode.

Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.
protected void
pack-priv void
pack-priv void
private static int
private void
Inherited from io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder:
newInstance

Field Detail

cumulationback to summary
private ByteBuf cumulation
headerSizeback to summary
private int headerSize
lengthback to summary
private int length
LENGTH_FIELD_SIZEback to summary
private static final int LENGTH_FIELD_SIZE
maxHeaderSizeback to summary
private final int maxHeaderSize
nameback to summary
private String name
numHeadersback to summary
private int numHeaders
stateback to summary
private SpdyHeaderBlockRawDecoder.State state

Constructor Detail

SpdyHeaderBlockRawDecoderback to summary
public SpdyHeaderBlockRawDecoder(SpdyVersion spdyVersion, int maxHeaderSize)

Method Detail

decodeback to summary
pack-priv void decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) throws Exception

Implements abstract io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder.decode.

Doc from io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder.decode.

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.

Parameters
alloc:ByteBufAllocator

the ByteBufAllocator which can be used to allocate new ByteBufs

headerBlock:ByteBuf

the HeaderBlock to decode

frame:SpdyHeadersFrame

the Headers frame that receives the Name/Value pairs

Annotations
@Override
Exceptions
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.
decodeHeaderBlockback to summary
protected void decodeHeaderBlock(ByteBuf headerBlock, SpdyHeadersFrame frame) throws Exception
endback to summary
pack-priv void end()

Implements abstract io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder.end.

Annotations
@Override
endHeaderBlockback to summary
pack-priv void endHeaderBlock(SpdyHeadersFrame frame) throws Exception

Implements abstract io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder.endHeaderBlock.

Annotations
@Override
readLengthFieldback to summary
private static int readLengthField(ByteBuf buffer)
releaseBufferback to summary
private void releaseBuffer()
io.netty.handler.codec.spdy back to summary

private final Enum SpdyHeaderBlockRawDecoder.State

extends Enum<SpdyHeaderBlockRawDecoder.State>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State
public static final SpdyHeaderBlockRawDecoder.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SpdyHeaderBlockRawDecoder.State
public static SpdyHeaderBlockRawDecoder.State[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

END_HEADER_BLOCKback to summary
public static final SpdyHeaderBlockRawDecoder.State END_HEADER_BLOCK
ERRORback to summary
public static final SpdyHeaderBlockRawDecoder.State ERROR
READ_NAMEback to summary
public static final SpdyHeaderBlockRawDecoder.State READ_NAME
READ_NAME_LENGTHback to summary
public static final SpdyHeaderBlockRawDecoder.State READ_NAME_LENGTH
READ_NUM_HEADERSback to summary
public static final SpdyHeaderBlockRawDecoder.State READ_NUM_HEADERS
READ_VALUEback to summary
public static final SpdyHeaderBlockRawDecoder.State READ_VALUE
READ_VALUE_LENGTHback to summary
public static final SpdyHeaderBlockRawDecoder.State READ_VALUE_LENGTH
SKIP_NAMEback to summary
public static final SpdyHeaderBlockRawDecoder.State SKIP_NAME
SKIP_VALUEback to summary
public static final SpdyHeaderBlockRawDecoder.State SKIP_VALUE

Constructor Detail

Stateback to summary
private State()

Method Detail

valueOfback to summary
public static SpdyHeaderBlockRawDecoder.State valueOf(String name)
valuesback to summary
public static SpdyHeaderBlockRawDecoder.State[] values()