Home / Function/ String() — netty Function Reference

String() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3ca157c2_dda0_9f15_4c4c_0a97d5631cb2["String()"]
  c95a5457_fd1a_430f_94db_ede3ba6c0195["ServerBootstrapConfig"]
  3ca157c2_dda0_9f15_4c4c_0a97d5631cb2 -->|defined in| c95a5457_fd1a_430f_94db_ede3ba6c0195
  91fe26f3_2036_0ad1_8348_9f6abafc88b9["childOptions()"]
  3ca157c2_dda0_9f15_4c4c_0a97d5631cb2 -->|calls| 91fe26f3_2036_0ad1_8348_9f6abafc88b9
  0683ed25_305d_1e4d_3d3d_aaddc3fc5c2f["childAttrs()"]
  3ca157c2_dda0_9f15_4c4c_0a97d5631cb2 -->|calls| 0683ed25_305d_1e4d_3d3d_aaddc3fc5c2f
  style 3ca157c2_dda0_9f15_4c4c_0a97d5631cb2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/bootstrap/ServerBootstrapConfig.java lines 67–104

    @Override
    public String toString() {
        StringBuilder buf = new StringBuilder(super.toString());
        buf.setLength(buf.length() - 1);
        buf.append(", ");
        EventLoopGroup childGroup = childGroup();
        if (childGroup != null) {
            buf.append("childGroup: ");
            buf.append(StringUtil.simpleClassName(childGroup));
            buf.append(", ");
        }
        Map<ChannelOption<?>, Object> childOptions = childOptions();
        if (!childOptions.isEmpty()) {
            buf.append("childOptions: ");
            buf.append(childOptions);
            buf.append(", ");
        }
        Map<AttributeKey<?>, Object> childAttrs = childAttrs();
        if (!childAttrs.isEmpty()) {
            buf.append("childAttrs: ");
            buf.append(childAttrs);
            buf.append(", ");
        }
        ChannelHandler childHandler = childHandler();
        if (childHandler != null) {
            buf.append("childHandler: ");
            buf.append(childHandler);
            buf.append(", ");
        }
        if (buf.charAt(buf.length() - 1) == '(') {
            buf.append(')');
        } else {
            buf.setCharAt(buf.length() - 2, ')');
            buf.setLength(buf.length() - 1);
        }

        return buf.toString();
    }

Domain

Subdomains

Frequently Asked Questions

What does String() do?
String() is a function in the netty codebase, defined in transport/src/main/java/io/netty/bootstrap/ServerBootstrapConfig.java.
Where is String() defined?
String() is defined in transport/src/main/java/io/netty/bootstrap/ServerBootstrapConfig.java at line 67.
What does String() call?
String() calls 2 function(s): childAttrs, childOptions.

Analyze Your Own Codebase

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

Try Supermodel Free