HttpHelloWorldServerInitializer Class — netty Architecture
Architecture documentation for the HttpHelloWorldServerInitializer class in HttpHelloWorldServerInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e70fd311_cdaa_ee52_e48f_d6de1bf9b138["HttpHelloWorldServerInitializer"] 9545f0db_321e_0cfb_7090_42e682e3facd["HttpHelloWorldServerInitializer.java"] e70fd311_cdaa_ee52_e48f_d6de1bf9b138 -->|defined in| 9545f0db_321e_0cfb_7090_42e682e3facd 942ad550_453e_b415_2364_a774cf3e2267["HttpHelloWorldServerInitializer()"] e70fd311_cdaa_ee52_e48f_d6de1bf9b138 -->|method| 942ad550_453e_b415_2364_a774cf3e2267 8a52ddd3_6fc9_0a4c_cd61_bbf35b2494f3["initChannel()"] e70fd311_cdaa_ee52_e48f_d6de1bf9b138 -->|method| 8a52ddd3_6fc9_0a4c_cd61_bbf35b2494f3
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServerInitializer.java lines 27–46
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 HttpContentCompressor((CompressionOptions[]) null));
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 example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServerInitializer.java.
Where is HttpHelloWorldServerInitializer defined?
HttpHelloWorldServerInitializer is defined in example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServerInitializer.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free