main() — netty Function Reference
Architecture documentation for the main() function in HttpUploadServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f6add856_96b3_d714_5788_5f2ae77351bb["main()"] 29f1261e_623d_c1f6_c5bd_2816cc755df7["HttpUploadServer"] f6add856_96b3_d714_5788_5f2ae77351bb -->|defined in| 29f1261e_623d_c1f6_c5bd_2816cc755df7 style f6add856_96b3_d714_5788_5f2ae77351bb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java lines 37–58
public static void main(String[] args) throws Exception {
// Configure SSL.
final SslContext sslCtx = ServerUtil.buildSslContext();
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group);
b.channel(NioServerSocketChannel.class);
b.handler(new LoggingHandler(LogLevel.INFO));
b.childHandler(new HttpUploadServerInitializer(sslCtx));
Channel ch = b.bind(PORT).sync().channel();
System.err.println("Open your web browser and navigate to " +
(SSL? "https" : "http") + "://127.0.0.1:" + PORT + '/');
ch.closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does main() do?
main() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java.
Where is main() defined?
main() is defined in example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free