Home / Function/ decode() — netty Function Reference

decode() — netty Function Reference

Architecture documentation for the decode() function in OptionalSslHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7f38a5c8_bb25_873f_69ff_5f0e8badd744["decode()"]
  18d476fe_9be9_0c53_8989_4e0784f98ac4["OptionalSslHandler"]
  7f38a5c8_bb25_873f_69ff_5f0e8badd744 -->|defined in| 18d476fe_9be9_0c53_8989_4e0784f98ac4
  d7229944_6e31_dc15_3ef2_d31179ce99ce["handleSsl()"]
  7f38a5c8_bb25_873f_69ff_5f0e8badd744 -->|calls| d7229944_6e31_dc15_3ef2_d31179ce99ce
  7f7f86e6_fd96_a0aa_060a_dd6c81c8318f["handleNonSsl()"]
  7f38a5c8_bb25_873f_69ff_5f0e8badd744 -->|calls| 7f7f86e6_fd96_a0aa_060a_dd6c81c8318f
  style 7f38a5c8_bb25_873f_69ff_5f0e8badd744 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OptionalSslHandler.java lines 42–52

    @Override
    protected void decode(ChannelHandlerContext context, ByteBuf in, List<Object> out) throws Exception {
        if (in.readableBytes() < SslUtils.SSL_RECORD_HEADER_LENGTH) {
            return;
        }
        if (SslHandler.isEncrypted(in, false)) {
            handleSsl(context);
        } else {
            handleNonSsl(context);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does decode() do?
decode() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OptionalSslHandler.java.
Where is decode() defined?
decode() is defined in handler/src/main/java/io/netty/handler/ssl/OptionalSslHandler.java at line 42.
What does decode() call?
decode() calls 2 function(s): handleNonSsl, handleSsl.

Analyze Your Own Codebase

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

Try Supermodel Free