Home / Class/ Initializer Class — netty Architecture

Initializer Class — netty Architecture

Architecture documentation for the Initializer class in OcspClient.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ac5d1a29_457d_bc08_a83c_3060753be974["Initializer"]
  1fc80aa3_ba19_9b50_d3a5_47eaa0a7dc98["OcspClient.java"]
  ac5d1a29_457d_bc08_a83c_3060753be974 -->|defined in| 1fc80aa3_ba19_9b50_d3a5_47eaa0a7dc98
  2ae01693_26e4_487c_a466_ead1c07ac63e["Initializer()"]
  ac5d1a29_457d_bc08_a83c_3060753be974 -->|method| 2ae01693_26e4_487c_a466_ead1c07ac63e
  f0656933_6b08_bb5c_94c7_f986d1e39467["initChannel()"]
  ac5d1a29_457d_bc08_a83c_3060753be974 -->|method| f0656933_6b08_bb5c_94c7_f986d1e39467

Relationship Graph

Source Code

handler-ssl-ocsp/src/main/java/io/netty/handler/ssl/ocsp/OcspClient.java lines 390–405

    static final class Initializer extends ChannelInitializer<SocketChannel> {

        private final Promise<OCSPResp> responsePromise;

        Initializer(Promise<OCSPResp> responsePromise) {
            this.responsePromise = checkNotNull(responsePromise, "ResponsePromise");
        }

        @Override
        protected void initChannel(SocketChannel socketChannel) {
            ChannelPipeline pipeline = socketChannel.pipeline();
            pipeline.addLast(new HttpClientCodec());
            pipeline.addLast(new HttpObjectAggregator(OCSP_RESPONSE_MAX_SIZE));
            pipeline.addLast(new OcspHttpHandler(responsePromise));
        }
    }

Frequently Asked Questions

What is the Initializer class?
Initializer is a class in the netty codebase, defined in handler-ssl-ocsp/src/main/java/io/netty/handler/ssl/ocsp/OcspClient.java.
Where is Initializer defined?
Initializer is defined in handler-ssl-ocsp/src/main/java/io/netty/handler/ssl/ocsp/OcspClient.java at line 390.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free