SpdyHeaderBlockDecoder Class — netty Architecture
Architecture documentation for the SpdyHeaderBlockDecoder class in SpdyHeaderBlockDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 88a85e22_f7ed_5b4d_e683_b8da05733e92["SpdyHeaderBlockDecoder"] c0fe4c57_1c38_42c8_3d85_e469552cc047["SpdyHeaderBlockDecoder.java"] 88a85e22_f7ed_5b4d_e683_b8da05733e92 -->|defined in| c0fe4c57_1c38_42c8_3d85_e469552cc047 39dc091d_4318_4d35_a150_ad104afff8aa["SpdyHeaderBlockDecoder()"] 88a85e22_f7ed_5b4d_e683_b8da05733e92 -->|method| 39dc091d_4318_4d35_a150_ad104afff8aa a95d602d_3911_6c50_d910_7044b143fc82["decode()"] 88a85e22_f7ed_5b4d_e683_b8da05733e92 -->|method| a95d602d_3911_6c50_d910_7044b143fc82 12ec5f9a_6a50_449b_cbd7_5a9f6192b13f["endHeaderBlock()"] 88a85e22_f7ed_5b4d_e683_b8da05733e92 -->|method| 12ec5f9a_6a50_449b_cbd7_5a9f6192b13f 072ef949_8ea3_7c46_e136_c83a70d10a30["end()"] 88a85e22_f7ed_5b4d_e683_b8da05733e92 -->|method| 072ef949_8ea3_7c46_e136_c83a70d10a30
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockDecoder.java lines 27–50
public abstract class SpdyHeaderBlockDecoder {
static SpdyHeaderBlockDecoder newInstance(SpdyVersion spdyVersion, int maxHeaderSize) {
return new SpdyHeaderBlockZlibDecoder(spdyVersion, maxHeaderSize);
}
/**
* 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.
*
* @param alloc the {@link ByteBufAllocator} which can be used to allocate new {@link ByteBuf}s
* @param headerBlock the HeaderBlock to decode
* @param frame 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.
*/
abstract void decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) throws Exception;
abstract void endHeaderBlock(SpdyHeadersFrame frame) throws Exception;
abstract void end();
}
Source
Frequently Asked Questions
What is the SpdyHeaderBlockDecoder class?
SpdyHeaderBlockDecoder is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockDecoder.java.
Where is SpdyHeaderBlockDecoder defined?
SpdyHeaderBlockDecoder is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockDecoder.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free