HexDumpProxy Class — netty Architecture
Architecture documentation for the HexDumpProxy class in HexDumpProxy.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e1dd0e3a_c810_3a38_3f9e_06526fd01c01["HexDumpProxy"] 659c95c0_176a_0600_ab50_844f49c61ea7["HexDumpProxy.java"] e1dd0e3a_c810_3a38_3f9e_06526fd01c01 -->|defined in| 659c95c0_176a_0600_ab50_844f49c61ea7 dacc4e97_1787_ac81_26b7_a561e25cd017["main()"] e1dd0e3a_c810_3a38_3f9e_06526fd01c01 -->|method| dacc4e97_1787_ac81_26b7_a561e25cd017
Relationship Graph
Source Code
example/src/main/java/io/netty/example/proxy/HexDumpProxy.java lines 27–50
public final class HexDumpProxy {
static final int LOCAL_PORT = Integer.parseInt(System.getProperty("localPort", "8443"));
static final String REMOTE_HOST = System.getProperty("remoteHost", "www.google.com");
static final int REMOTE_PORT = Integer.parseInt(System.getProperty("remotePort", "443"));
public static void main(String[] args) throws Exception {
System.err.println("Proxying *:" + LOCAL_PORT + " to " + REMOTE_HOST + ':' + REMOTE_PORT + " ...");
// Configure the bootstrap.
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group)
.channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new HexDumpProxyInitializer(REMOTE_HOST, REMOTE_PORT))
.childOption(ChannelOption.AUTO_READ, false)
.bind(LOCAL_PORT).sync().channel().closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
}
Source
Frequently Asked Questions
What is the HexDumpProxy class?
HexDumpProxy is a class in the netty codebase, defined in example/src/main/java/io/netty/example/proxy/HexDumpProxy.java.
Where is HexDumpProxy defined?
HexDumpProxy is defined in example/src/main/java/io/netty/example/proxy/HexDumpProxy.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free