HttpHelloWorldServerInitializer Class — netty Architecture
Architecture documentation for the HttpHelloWorldServerInitializer class in HttpHelloWorldServerInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 458263a7_9470_669e_6ff0_e50c8c2420b4["HttpHelloWorldServerInitializer"] 1399ef12_7b70_8916_66af_bc9e145f1314["HttpHelloWorldServerInitializer.java"] 458263a7_9470_669e_6ff0_e50c8c2420b4 -->|defined in| 1399ef12_7b70_8916_66af_bc9e145f1314 4a617e3a_f4de_982a_a462_77af3c048046["HttpHelloWorldServerInitializer()"] 458263a7_9470_669e_6ff0_e50c8c2420b4 -->|method| 4a617e3a_f4de_982a_a462_77af3c048046 45a8d9db_0e74_0c75_5255_c794ab2cc335["initChannel()"] 458263a7_9470_669e_6ff0_e50c8c2420b4 -->|method| 45a8d9db_0e74_0c75_5255_c794ab2cc335
Relationship Graph
Source Code
testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/HttpHelloWorldServerInitializer.java lines 26–44
public class HttpHelloWorldServerInitializer extends ChannelInitializer<SocketChannel> {
private final SslContext sslCtx;
public HttpHelloWorldServerInitializer(SslContext sslCtx) {
this.sslCtx = sslCtx;
}
@Override
public void initChannel(SocketChannel ch) {
ChannelPipeline p = ch.pipeline();
if (sslCtx != null) {
p.addLast(sslCtx.newHandler(ch.alloc()));
}
p.addLast(new HttpServerCodec());
p.addLast(new HttpServerExpectContinueHandler());
p.addLast(new HttpHelloWorldServerHandler());
}
}
Defined In
Source
Frequently Asked Questions
What is the HttpHelloWorldServerInitializer class?
HttpHelloWorldServerInitializer is a class in the netty codebase, defined in testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/HttpHelloWorldServerInitializer.java.
Where is HttpHelloWorldServerInitializer defined?
HttpHelloWorldServerInitializer is defined in testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/HttpHelloWorldServerInitializer.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free