newServerHandler() — netty Function Reference
Architecture documentation for the newServerHandler() function in OcspServerExample.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c094108_c004_065c_6324_20c19aa12c46["newServerHandler()"] 128dfd35_ddfc_27f1_9e7e_4d4e80ed4721["OcspServerExample"] 8c094108_c004_065c_6324_20c19aa12c46 -->|defined in| 128dfd35_ddfc_27f1_9e7e_4d4e80ed4721 175105d6_9501_f35a_922c_397c9d3c0bef["main()"] 175105d6_9501_f35a_922c_397c9d3c0bef -->|calls| 8c094108_c004_065c_6324_20c19aa12c46 style 8c094108_c004_065c_6324_20c19aa12c46 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/ocsp/OcspServerExample.java lines 145–165
private static ChannelInitializer<Channel> newServerHandler(final ReferenceCountedOpenSslContext context,
final OCSPResp response) {
return new ChannelInitializer<Channel>() {
@Override
protected void initChannel(Channel ch) throws Exception {
SslHandler sslHandler = context.newHandler(ch.alloc());
if (response != null) {
ReferenceCountedOpenSslEngine engine
= (ReferenceCountedOpenSslEngine) sslHandler.engine();
engine.setOcspResponse(response.getEncoded());
}
ChannelPipeline pipeline = ch.pipeline();
pipeline.addLast(sslHandler);
// so on and so forth...
}
};
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does newServerHandler() do?
newServerHandler() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/ocsp/OcspServerExample.java.
Where is newServerHandler() defined?
newServerHandler() is defined in example/src/main/java/io/netty/example/ocsp/OcspServerExample.java at line 145.
What calls newServerHandler()?
newServerHandler() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free