configureSsl() — netty Function Reference
Architecture documentation for the configureSsl() function in Http2ClientInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 91f0fece_507b_58de_8f7b_b73b6467c862["configureSsl()"] 3d194589_1edf_6e5a_e7b1_3add79b11968["Http2ClientInitializer"] 91f0fece_507b_58de_8f7b_b73b6467c862 -->|defined in| 3d194589_1edf_6e5a_e7b1_3add79b11968 ff062f25_3104_30ff_00bd_7656cbb235e3["initChannel()"] ff062f25_3104_30ff_00bd_7656cbb235e3 -->|calls| 91f0fece_507b_58de_8f7b_b73b6467c862 4804e25a_c676_6daf_89ce_d3dd191d19e7["configureEndOfPipeline()"] 91f0fece_507b_58de_8f7b_b73b6467c862 -->|calls| 4804e25a_c676_6daf_89ce_d3dd191d19e7 style 91f0fece_507b_58de_8f7b_b73b6467c862 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/client/Http2ClientInitializer.java lines 100–119
private void configureSsl(SocketChannel ch) {
ChannelPipeline pipeline = ch.pipeline();
// Specify Host in SSLContext New Handler to add TLS SNI Extension
pipeline.addLast(sslCtx.newHandler(ch.alloc(), Http2Client.HOST, Http2Client.PORT));
// We must wait for the handshake to finish and the protocol to be negotiated before configuring
// the HTTP/2 components of the pipeline.
pipeline.addLast(new ApplicationProtocolNegotiationHandler("") {
@Override
protected void configurePipeline(ChannelHandlerContext ctx, String protocol) {
if (ApplicationProtocolNames.HTTP_2.equals(protocol)) {
ChannelPipeline p = ctx.pipeline();
p.addLast(connectionHandler);
configureEndOfPipeline(p);
return;
}
ctx.close();
throw new IllegalStateException("unknown protocol: " + protocol);
}
});
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does configureSsl() do?
configureSsl() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/client/Http2ClientInitializer.java.
Where is configureSsl() defined?
configureSsl() is defined in example/src/main/java/io/netty/example/http2/helloworld/client/Http2ClientInitializer.java at line 100.
What does configureSsl() call?
configureSsl() calls 1 function(s): configureEndOfPipeline.
What calls configureSsl()?
configureSsl() is called by 1 function(s): initChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free