SpdyHttpDecoder Class — netty Architecture
Architecture documentation for the SpdyHttpDecoder class in SpdyHttpDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 025fd5f9_dfbe_4042_6d63_96c1c1168bd5["SpdyHttpDecoder"] 3c3dc37e_5071_cc94_3381_7182a582da9d["SpdyHttpDecoder.java"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 -->|defined in| 3c3dc37e_5071_cc94_3381_7182a582da9d 6008a295_713b_9d3c_0337_8bf37bd531e0["SpdyHttpDecoder()"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 -->|method| 6008a295_713b_9d3c_0337_8bf37bd531e0 58553eca_dd7f_3a09_2b19_de83c8448358["channelInactive()"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 -->|method| 58553eca_dd7f_3a09_2b19_de83c8448358 1d5e30f8_40f7_305d_15f7_d197e80d935e["FullHttpMessage()"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 -->|method| 1d5e30f8_40f7_305d_15f7_d197e80d935e 9d3e067f_5ad6_e6e1_a9d7_8d35a6ab74ac["decode()"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 -->|method| 9d3e067f_5ad6_e6e1_a9d7_8d35a6ab74ac caba727d_7991_640d_4e6b_356f29d858b3["FullHttpRequest()"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 -->|method| caba727d_7991_640d_4e6b_356f29d858b3 8c48508a_6208_bba0_b849_b44d393c8a28["FullHttpResponse()"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 -->|method| 8c48508a_6208_bba0_b849_b44d393c8a28
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpDecoder.java lines 50–465
public class SpdyHttpDecoder extends MessageToMessageDecoder<SpdyFrame> {
private final int spdyVersion;
private final int maxContentLength;
private final Map<Integer, FullHttpMessage> messageMap;
private final HttpHeadersFactory headersFactory;
private final HttpHeadersFactory trailersFactory;
/**
* Creates a new instance.
*
* @param version the protocol version
* @param maxContentLength the maximum length of the message content.
* If the length of the message content exceeds this value,
* a {@link TooLongFrameException} will be raised.
*/
public SpdyHttpDecoder(SpdyVersion version, int maxContentLength) {
this(version, maxContentLength, new HashMap<Integer, FullHttpMessage>(),
DefaultHttpHeadersFactory.headersFactory(), DefaultHttpHeadersFactory.trailersFactory());
}
/**
* Creates a new instance.
*
* @param version the protocol version
* @param maxContentLength the maximum length of the message content.
* If the length of the message content exceeds this value,
* a {@link TooLongFrameException} will be raised.
* @param validateHeaders {@code true} if http headers should be validated
* @deprecated Use the {@link #SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)}
* constructor instead.
*/
@Deprecated
public SpdyHttpDecoder(SpdyVersion version, int maxContentLength, boolean validateHeaders) {
this(version, maxContentLength, new HashMap<Integer, FullHttpMessage>(), validateHeaders);
}
/**
* Creates a new instance with the specified parameters.
*
* @param version the protocol version
* @param maxContentLength the maximum length of the message content.
* If the length of the message content exceeds this value,
* a {@link TooLongFrameException} will be raised.
* @param messageMap the {@link Map} used to hold partially received messages.
*/
protected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer, FullHttpMessage> messageMap) {
this(version, maxContentLength, messageMap,
DefaultHttpHeadersFactory.headersFactory(), DefaultHttpHeadersFactory.trailersFactory());
}
/**
* Creates a new instance with the specified parameters.
*
* @param version the protocol version
* @param maxContentLength the maximum length of the message content.
* If the length of the message content exceeds this value,
* a {@link TooLongFrameException} will be raised.
* @param messageMap the {@link Map} used to hold partially received messages.
* @param validateHeaders {@code true} if http headers should be validated
* @deprecated Use the {@link #SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)}
* constructor instead.
*/
@Deprecated
protected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer,
FullHttpMessage> messageMap, boolean validateHeaders) {
this(version, maxContentLength, messageMap,
DefaultHttpHeadersFactory.headersFactory().withValidation(validateHeaders),
DefaultHttpHeadersFactory.trailersFactory().withValidation(validateHeaders));
}
/**
* Creates a new instance with the specified parameters.
*
* @param version the protocol version
* @param maxContentLength the maximum length of the message content.
* If the length of the message content exceeds this value,
* a {@link TooLongFrameException} will be raised.
* @param messageMap the {@link Map} used to hold partially received messages.
* @param headersFactory The factory used for creating HTTP headers
* @param trailersFactory The factory used for creating HTTP trailers.
Source
Frequently Asked Questions
What is the SpdyHttpDecoder class?
SpdyHttpDecoder is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpDecoder.java.
Where is SpdyHttpDecoder defined?
SpdyHttpDecoder is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpDecoder.java at line 50.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free