Home / Function/ handlerAdded() — netty Function Reference

handlerAdded() — netty Function Reference

Architecture documentation for the handlerAdded() function in Http2StreamFrameToHttpObjectCodec.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1ebdff1c_6436_ff9f_3bb8_b8cfedc969d4["handlerAdded()"]
  28068ec0_f470_e63a_089d_e0d46f43718e["Http2StreamFrameToHttpObjectCodec"]
  1ebdff1c_6436_ff9f_3bb8_b8cfedc969d4 -->|defined in| 28068ec0_f470_e63a_089d_e0d46f43718e
  7f1a2333_ea20_bf69_5e3e_cc03fbd23341["connectionSchemeAttribute()"]
  1ebdff1c_6436_ff9f_3bb8_b8cfedc969d4 -->|calls| 7f1a2333_ea20_bf69_5e3e_cc03fbd23341
  abee8c20_eedf_2afb_eeea_68e7c9dd915b["isSsl()"]
  1ebdff1c_6436_ff9f_3bb8_b8cfedc969d4 -->|calls| abee8c20_eedf_2afb_eeea_68e7c9dd915b
  style 1ebdff1c_6436_ff9f_3bb8_b8cfedc969d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodec.java lines 219–233

    @Override
    public void handlerAdded(final ChannelHandlerContext ctx) throws Exception {
        super.handlerAdded(ctx);

        // this handler is typically used on an Http2StreamChannel. At this
        // stage, ssl handshake should've been established. checking for the
        // presence of SslHandler in the parent's channel pipeline to
        // determine the HTTP scheme should suffice, even for the case where
        // SniHandler is used.
        final Attribute<HttpScheme> schemeAttribute = connectionSchemeAttribute(ctx);
        if (schemeAttribute.get() == null) {
            final HttpScheme scheme = isSsl(ctx) ? HttpScheme.HTTPS : HttpScheme.HTTP;
            schemeAttribute.set(scheme);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does handlerAdded() do?
handlerAdded() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodec.java.
Where is handlerAdded() defined?
handlerAdded() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodec.java at line 219.
What does handlerAdded() call?
handlerAdded() calls 2 function(s): connectionSchemeAttribute, isSsl.

Analyze Your Own Codebase

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

Try Supermodel Free