ChannelHandler() — netty Function Reference
Architecture documentation for the ChannelHandler() function in OcspTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 14533b45_8826_8fab_1e32_c77489c1be71["ChannelHandler()"] 9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"] 14533b45_8826_8fab_1e32_c77489c1be71 -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5 faf3f770_46d7_8102_bd0b_c20c7ae003a9["OcspClientCallbackHandler()"] 14533b45_8826_8fab_1e32_c77489c1be71 -->|calls| faf3f770_46d7_8102_bd0b_c20c7ae003a9 style 14533b45_8826_8fab_1e32_c77489c1be71 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 422–442
private static ChannelHandler newServerHandler(final SslContext context,
final byte[] response, final ChannelHandler handler) {
return new ChannelInitializer<Channel>() {
@Override
protected void initChannel(Channel ch) throws Exception {
ChannelPipeline pipeline = ch.pipeline();
SslHandler sslHandler = context.newHandler(ch.alloc());
if (response != null) {
ReferenceCountedOpenSslEngine engine = (ReferenceCountedOpenSslEngine) sslHandler.engine();
engine.setOcspResponse(response);
}
pipeline.addLast(sslHandler);
if (handler != null) {
pipeline.addLast(handler);
}
}
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ChannelHandler() do?
ChannelHandler() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is ChannelHandler() defined?
ChannelHandler() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 422.
What does ChannelHandler() call?
ChannelHandler() calls 1 function(s): OcspClientCallbackHandler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free