Home / Function/ setupChannelHandlerContext() — netty Function Reference

setupChannelHandlerContext() — netty Function Reference

Architecture documentation for the setupChannelHandlerContext() function in DefaultHttp2LocalFlowControllerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  85225cb9_c138_e86d_cc82_c3d1e5f63b6e["setupChannelHandlerContext()"]
  99976e08_de48_4e06_40e5_5ee3655f2651["DefaultHttp2LocalFlowControllerTest"]
  85225cb9_c138_e86d_cc82_c3d1e5f63b6e -->|defined in| 99976e08_de48_4e06_40e5_5ee3655f2651
  4fc25965_75b8_40fd_a008_02d1e1aa64ac["setup()"]
  4fc25965_75b8_40fd_a008_02d1e1aa64ac -->|calls| 85225cb9_c138_e86d_cc82_c3d1e5f63b6e
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6["windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed()"]
  d30d055f_dc68_84cc_1de8_cf0e2b2f50c6 -->|calls| 85225cb9_c138_e86d_cc82_c3d1e5f63b6e
  style 85225cb9_c138_e86d_cc82_c3d1e5f63b6e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java lines 81–101

    private void setupChannelHandlerContext(boolean allowFlush) {
        reset(ctx);
        when(ctx.newPromise()).thenReturn(promise);
        if (allowFlush) {
            when(ctx.flush()).then(new Answer<ChannelHandlerContext>() {
                @Override
                public ChannelHandlerContext answer(InvocationOnMock invocationOnMock) {
                    return ctx;
                }
            });
        } else {
            when(ctx.flush()).then(new Answer<ChannelHandlerContext>() {
                @Override
                public ChannelHandlerContext answer(InvocationOnMock invocationOnMock) {
                    fail("forbidden");
                    return null;
                }
            });
        }
        when(ctx.executor()).thenReturn(executor);
    }

Domain

Subdomains

Frequently Asked Questions

What does setupChannelHandlerContext() do?
setupChannelHandlerContext() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java.
Where is setupChannelHandlerContext() defined?
setupChannelHandlerContext() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowControllerTest.java at line 81.
What calls setupChannelHandlerContext()?
setupChannelHandlerContext() is called by 2 function(s): setup, windowUpdateShouldBeWrittenWhenStreamIsClosedAndFlushed.

Analyze Your Own Codebase

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

Try Supermodel Free