configureClearText() — netty Function Reference
Architecture documentation for the configureClearText() function in Http2ServerInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 33997779_95aa_b421_dbbd_fcc7afd3acaf["configureClearText()"] dde7fab7_ab37_3918_6df2_b3e8b994940f["Http2ServerInitializer"] 33997779_95aa_b421_dbbd_fcc7afd3acaf -->|defined in| dde7fab7_ab37_3918_6df2_b3e8b994940f f7d3c227_1ff7_d3c7_fcd4_550f4b8bdb74["initChannel()"] f7d3c227_1ff7_d3c7_fcd4_550f4b8bdb74 -->|calls| 33997779_95aa_b421_dbbd_fcc7afd3acaf style 33997779_95aa_b421_dbbd_fcc7afd3acaf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/frame/server/Http2ServerInitializer.java lines 90–109
private void configureClearText(SocketChannel ch) {
final ChannelPipeline p = ch.pipeline();
final HttpServerCodec sourceCodec = new HttpServerCodec();
p.addLast(sourceCodec);
p.addLast(new HttpServerUpgradeHandler(sourceCodec, upgradeCodecFactory));
p.addLast(new SimpleChannelInboundHandler<HttpMessage>() {
@Override
protected void channelRead0(ChannelHandlerContext ctx, HttpMessage msg) throws Exception {
// If this handler is hit then no upgrade has been attempted and the client is just talking HTTP.
System.err.println("Directly talking: " + msg.protocolVersion() + " (no upgrade was attempted)");
ChannelPipeline pipeline = ctx.pipeline();
pipeline.addAfter(ctx.name(), null, new HelloWorldHttp1Handler("Direct. No Upgrade Attempted."));
pipeline.replace(this, null, new HttpObjectAggregator(maxHttpContentLength));
ctx.fireChannelRead(ReferenceCountUtil.retain(msg));
}
});
p.addLast(new UserEventLogger());
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does configureClearText() do?
configureClearText() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/frame/server/Http2ServerInitializer.java.
Where is configureClearText() defined?
configureClearText() is defined in example/src/main/java/io/netty/example/http2/helloworld/frame/server/Http2ServerInitializer.java at line 90.
What calls configureClearText()?
configureClearText() is called by 1 function(s): initChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free