initChannel() — netty Function Reference
Architecture documentation for the initChannel() function in OpenSslCertificateCompressionTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1dc16b28_8c1b_99ca_42c7_07382bdaca38["initChannel()"] 46ca5ff1_431a_5301_ae91_c4eee74f31d9["CertCompressionTestChannelInitializer"] 1dc16b28_8c1b_99ca_42c7_07382bdaca38 -->|defined in| 46ca5ff1_431a_5301_ae91_c4eee74f31d9 style 1dc16b28_8c1b_99ca_42c7_07382bdaca38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java lines 387–410
@Override
protected void initChannel(Channel ch) {
ChannelPipeline pipeline = ch.pipeline();
pipeline.addLast(sslContext.newHandler(ch.alloc()));
pipeline.addLast(new SimpleChannelInboundHandler<Object>() {
@Override
public void channelRead0(ChannelHandlerContext ctx, Object msg) {
// Do nothing
}
@Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) {
if (evt instanceof SslHandshakeCompletionEvent) {
if (((SslHandshakeCompletionEvent) evt).isSuccess()) {
channelPromise.trySuccess(evt);
} else {
channelPromise.tryFailure(((SslHandshakeCompletionEvent) evt).cause());
}
}
ctx.fireUserEventTriggered(evt);
}
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does initChannel() do?
initChannel() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java.
Where is initChannel() defined?
initChannel() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java at line 387.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free