configurePipeline() — netty Function Reference
Architecture documentation for the configurePipeline() function in Http2OrHttpHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fc0e155e_43e8_8b34_fbe6_afd54b334418["configurePipeline()"] 45a08598_7a55_ec18_f1b2_9a34857037ed["Http2OrHttpHandler"] fc0e155e_43e8_8b34_fbe6_afd54b334418 -->|defined in| 45a08598_7a55_ec18_f1b2_9a34857037ed style fc0e155e_43e8_8b34_fbe6_afd54b334418 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/frame/server/Http2OrHttpHandler.java lines 37–52
@Override
protected void configurePipeline(ChannelHandlerContext ctx, String protocol) throws Exception {
if (ApplicationProtocolNames.HTTP_2.equals(protocol)) {
ctx.pipeline().addLast(Http2FrameCodecBuilder.forServer().build(), new HelloWorldHttp2Handler());
return;
}
if (ApplicationProtocolNames.HTTP_1_1.equals(protocol)) {
ctx.pipeline().addLast(new HttpServerCodec(),
new HttpObjectAggregator(MAX_CONTENT_LENGTH),
new HelloWorldHttp1Handler("ALPN Negotiation"));
return;
}
throw new IllegalStateException("unknown protocol: " + protocol);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does configurePipeline() do?
configurePipeline() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/frame/server/Http2OrHttpHandler.java.
Where is configurePipeline() defined?
configurePipeline() is defined in example/src/main/java/io/netty/example/http2/helloworld/frame/server/Http2OrHttpHandler.java at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free