Home / Function/ String() — netty Function Reference

String() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b87af09a_6e2b_a1e2_7a9d_9be68b1601d1["String()"]
  e7451e47_9e79_e42d_021a_5d555751eb16["AbstractBootstrapConfig"]
  b87af09a_6e2b_a1e2_7a9d_9be68b1601d1 -->|defined in| e7451e47_9e79_e42d_021a_5d555751eb16
  8aa598f6_6318_4ea3_0e64_cbd96b6650bf["channelFactory()"]
  b87af09a_6e2b_a1e2_7a9d_9be68b1601d1 -->|calls| 8aa598f6_6318_4ea3_0e64_cbd96b6650bf
  d22c37ee_2e70_74ee_f070_58eff9c57918["options()"]
  b87af09a_6e2b_a1e2_7a9d_9be68b1601d1 -->|calls| d22c37ee_2e70_74ee_f070_58eff9c57918
  4a9d98ba_a334_7bc9_d833_8897b3e5c049["attrs()"]
  b87af09a_6e2b_a1e2_7a9d_9be68b1601d1 -->|calls| 4a9d98ba_a334_7bc9_d833_8897b3e5c049
  style b87af09a_6e2b_a1e2_7a9d_9be68b1601d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/bootstrap/AbstractBootstrapConfig.java lines 84–134

    @Override
    public String toString() {
        StringBuilder buf = new StringBuilder()
                .append(StringUtil.simpleClassName(this))
                .append('(');
        EventLoopGroup group = group();
        if (group != null) {
            buf.append("group: ")
                    .append(StringUtil.simpleClassName(group))
                    .append(", ");
        }
        @SuppressWarnings("deprecation")
        ChannelFactory<? extends C> factory = channelFactory();
        if (factory != null) {
            buf.append("channelFactory: ")
                    .append(factory)
                    .append(", ");
        }
        SocketAddress localAddress = localAddress();
        if (localAddress != null) {
            buf.append("localAddress: ")
                    .append(localAddress)
                    .append(", ");
        }

        Map<ChannelOption<?>, Object> options = options();
        if (!options.isEmpty()) {
            buf.append("options: ")
                    .append(options)
                    .append(", ");
        }
        Map<AttributeKey<?>, Object> attrs = attrs();
        if (!attrs.isEmpty()) {
            buf.append("attrs: ")
                    .append(attrs)
                    .append(", ");
        }
        ChannelHandler handler = handler();
        if (handler != null) {
            buf.append("handler: ")
                    .append(handler)
                    .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/AbstractBootstrapConfig.java.
Where is String() defined?
String() is defined in transport/src/main/java/io/netty/bootstrap/AbstractBootstrapConfig.java at line 84.
What does String() call?
String() calls 3 function(s): attrs, channelFactory, options.

Analyze Your Own Codebase

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

Try Supermodel Free