HttpUploadClientInitializer Class — netty Architecture
Architecture documentation for the HttpUploadClientInitializer class in HttpUploadClientInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 31903fce_a1ec_29ca_f2f0_bba7f6435f08["HttpUploadClientInitializer"] bb659ed9_54e4_a839_beee_9da422cfbe25["HttpUploadClientInitializer.java"] 31903fce_a1ec_29ca_f2f0_bba7f6435f08 -->|defined in| bb659ed9_54e4_a839_beee_9da422cfbe25 ab6d37f6_ddef_316a_aad0_8552c8e6e41c["HttpUploadClientInitializer()"] 31903fce_a1ec_29ca_f2f0_bba7f6435f08 -->|method| ab6d37f6_ddef_316a_aad0_8552c8e6e41c 519c329e_2a66_b02e_b555_bfcaedd468d3["initChannel()"] 31903fce_a1ec_29ca_f2f0_bba7f6435f08 -->|method| 519c329e_2a66_b02e_b555_bfcaedd468d3
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http/upload/HttpUploadClientInitializer.java lines 26–54
public class HttpUploadClientInitializer extends ChannelInitializer<SocketChannel> {
private static final int MAX_CONTENT_LENGTH = 65536;
private final SslContext sslCtx;
public HttpUploadClientInitializer(SslContext sslCtx) {
this.sslCtx = sslCtx;
}
@Override
public void initChannel(SocketChannel ch) {
ChannelPipeline pipeline = ch.pipeline();
if (sslCtx != null) {
pipeline.addLast("ssl", sslCtx.newHandler(ch.alloc()));
}
pipeline.addLast("codec", new HttpClientCodec());
// Remove the following line if you don't want automatic content decompression.
pipeline.addLast("inflater", new HttpContentDecompressor(MAX_CONTENT_LENGTH));
// to be used since huge file transfer
pipeline.addLast("chunkedWriter", new ChunkedWriteHandler());
pipeline.addLast("handler", new HttpUploadClientHandler());
}
}
Source
Frequently Asked Questions
What is the HttpUploadClientInitializer class?
HttpUploadClientInitializer is a class in the netty codebase, defined in example/src/main/java/io/netty/example/http/upload/HttpUploadClientInitializer.java.
Where is HttpUploadClientInitializer defined?
HttpUploadClientInitializer is defined in example/src/main/java/io/netty/example/http/upload/HttpUploadClientInitializer.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free