ChannelHandlerContext() — netty Function Reference
Architecture documentation for the ChannelHandlerContext() function in Http2StreamChannelBootstrap.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f148f6d0_1caf_c90f_2345_593fac59337e["ChannelHandlerContext()"] 5a534d0f_a13f_a12d_bbed_309a0c8a2c40["Http2StreamChannelBootstrap"] f148f6d0_1caf_c90f_2345_593fac59337e -->|defined in| 5a534d0f_a13f_a12d_bbed_309a0c8a2c40 style f148f6d0_1caf_c90f_2345_593fac59337e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamChannelBootstrap.java lines 135–158
@SuppressWarnings("deprecation")
private ChannelHandlerContext findCtx() throws ClosedChannelException {
// First try to use cached context and if this not work lets try to lookup the context.
ChannelHandlerContext ctx = multiplexCtx;
if (ctx != null && !ctx.isRemoved()) {
return ctx;
}
ChannelPipeline pipeline = channel.pipeline();
ctx = pipeline.context(Http2MultiplexCodec.class);
if (ctx == null) {
ctx = pipeline.context(Http2MultiplexHandler.class);
}
if (ctx == null) {
if (channel.isActive()) {
throw new IllegalStateException(StringUtil.simpleClassName(Http2MultiplexCodec.class) + " or "
+ StringUtil.simpleClassName(Http2MultiplexHandler.class)
+ " must be in the ChannelPipeline of Channel " + channel);
} else {
throw new ClosedChannelException();
}
}
multiplexCtx = ctx;
return ctx;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ChannelHandlerContext() do?
ChannelHandlerContext() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamChannelBootstrap.java.
Where is ChannelHandlerContext() defined?
ChannelHandlerContext() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamChannelBootstrap.java at line 135.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free