Home / Function/ String() — netty Function Reference

String() — netty Function Reference

Architecture documentation for the String() function in HttpHelloWorldServer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  db5631f3_5598_907d_84f5_4c8c386d5cd3["String()"]
  38799e92_faf4_5a0c_b71a_0734bd6fa449["HttpHelloWorldServer"]
  db5631f3_5598_907d_84f5_4c8c386d5cd3 -->|defined in| 38799e92_faf4_5a0c_b71a_0734bd6fa449
  style db5631f3_5598_907d_84f5_4c8c386d5cd3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/HttpHelloWorldServer.java lines 219–237

    static String content(ChannelHandlerContext ctx) {
        String modulesInfo = ModuleLayer.boot().modules().stream()
                .map(module -> "- " + module.getName() + " " +
                        (module.getDescriptor().isAutomatic() ? "(automatic)" : ""))
                .collect(Collectors.joining("\r\n", "Boot layer:\r\n", "\r\n"));

        String channelType = ctx.channel().getClass().getName();

        String sslEngineInfo = "";
        SslHandler sslHandler = ctx.pipeline().get(SslHandler.class);
        if (sslHandler != null) {
            sslEngineInfo = "SSL Engine: " + sslHandler.engine().getClass().getName() + "\r\n";
        }

        return "Hello World\r\n" +
                "Transport: " + channelType + "\r\n" +
                sslEngineInfo +
                modulesInfo;
    }

Domain

Subdomains

Frequently Asked Questions

What does String() do?
String() is a function in the netty codebase, defined in testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/HttpHelloWorldServer.java.
Where is String() defined?
String() is defined in testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/HttpHelloWorldServer.java at line 219.

Analyze Your Own Codebase

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

Try Supermodel Free