Home / Class/ AbstractInboundHttp2ToHttpAdapterBuilder Class — netty Architecture

AbstractInboundHttp2ToHttpAdapterBuilder Class — netty Architecture

Architecture documentation for the AbstractInboundHttp2ToHttpAdapterBuilder class in AbstractInboundHttp2ToHttpAdapterBuilder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f40bcee8_25d9_dea5_c08f_4ae32be49402["AbstractInboundHttp2ToHttpAdapterBuilder"]
  1bb4b9e0_aa65_cadd_a6f4_14d8975da7be["AbstractInboundHttp2ToHttpAdapterBuilder.java"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|defined in| 1bb4b9e0_aa65_cadd_a6f4_14d8975da7be
  69995194_2f12_b6d0_a04a_ba37945018ba["AbstractInboundHttp2ToHttpAdapterBuilder()"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|method| 69995194_2f12_b6d0_a04a_ba37945018ba
  7aac79f6_87a2_cc6c_4dc4_a405aa9b88ac["B()"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|method| 7aac79f6_87a2_cc6c_4dc4_a405aa9b88ac
  7436f264_a43f_dccd_cc52_5806cde5b51b["Http2Connection()"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|method| 7436f264_a43f_dccd_cc52_5806cde5b51b
  0199f297_955f_d394_5e06_6a8eabb25e6f["maxContentLength()"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|method| 0199f297_955f_d394_5e06_6a8eabb25e6f
  712e111a_f465_3dd9_7d5c_b019d3c9a0de["isValidateHttpHeaders()"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|method| 712e111a_f465_3dd9_7d5c_b019d3c9a0de
  e0a55e1a_c44b_4df2_13a3_1fdf6840bf4e["isPropagateSettings()"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|method| e0a55e1a_c44b_4df2_13a3_1fdf6840bf4e
  5b819aec_b205_af25_e6ed_ba778a48a180["T()"]
  f40bcee8_25d9_dea5_c08f_4ae32be49402 -->|method| 5b819aec_b205_af25_e6ed_ba778a48a180

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractInboundHttp2ToHttpAdapterBuilder.java lines 24–134

public abstract class AbstractInboundHttp2ToHttpAdapterBuilder<
        T extends InboundHttp2ToHttpAdapter, B extends AbstractInboundHttp2ToHttpAdapterBuilder<T, B>> {

    private final Http2Connection connection;
    private int maxContentLength;
    private boolean validateHttpHeaders;
    private boolean propagateSettings;

    /**
     * Creates a new {@link InboundHttp2ToHttpAdapter} builder for the specified {@link Http2Connection}.
     *
     * @param connection the object which will provide connection notification events
     *                   for the current connection
     */
    protected AbstractInboundHttp2ToHttpAdapterBuilder(Http2Connection connection) {
        this.connection = checkNotNull(connection, "connection");
    }

    @SuppressWarnings("unchecked")
    protected final B self() {
        return (B) this;
    }

    /**
     * Returns the {@link Http2Connection}.
     */
    protected Http2Connection connection() {
        return connection;
    }

    /**
     * Returns the maximum length of the message content.
     */
    protected int maxContentLength() {
        return maxContentLength;
    }

    /**
     * Specifies the maximum length of the message content.
     *
     * @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
     * @return {@link AbstractInboundHttp2ToHttpAdapterBuilder} the builder for the {@link InboundHttp2ToHttpAdapter}
     */
    protected B maxContentLength(int maxContentLength) {
        this.maxContentLength = maxContentLength;
        return self();
    }

    /**
     * Return {@code true} if HTTP header validation should be performed.
     */
    protected boolean isValidateHttpHeaders() {
        return validateHttpHeaders;
    }

    /**
     * Specifies whether validation of HTTP headers should be performed.
     *
     * @param validate
     * <ul>
     * <li>{@code true} to validate HTTP headers in the http-codec</li>
     * <li>{@code false} not to validate HTTP headers in the http-codec</li>
     * </ul>
     * @return {@link AbstractInboundHttp2ToHttpAdapterBuilder} the builder for the {@link InboundHttp2ToHttpAdapter}
     */
    protected B validateHttpHeaders(boolean validate) {
        validateHttpHeaders = validate;
        return self();
    }

    /**
     * Returns {@code true} if a read settings frame should be propagated along the channel pipeline.
     */
    protected boolean isPropagateSettings() {
        return propagateSettings;
    }

    /**
     * Specifies whether a read settings frame should be propagated along the channel pipeline.
     *

Frequently Asked Questions

What is the AbstractInboundHttp2ToHttpAdapterBuilder class?
AbstractInboundHttp2ToHttpAdapterBuilder is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractInboundHttp2ToHttpAdapterBuilder.java.
Where is AbstractInboundHttp2ToHttpAdapterBuilder defined?
AbstractInboundHttp2ToHttpAdapterBuilder is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractInboundHttp2ToHttpAdapterBuilder.java at line 24.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free