Home / Class/ DefaultSocks5InitialResponse Class — netty Architecture

DefaultSocks5InitialResponse Class — netty Architecture

Architecture documentation for the DefaultSocks5InitialResponse class in DefaultSocks5InitialResponse.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  76d76b85_cb97_bd06_002b_6e55e61e2202["DefaultSocks5InitialResponse"]
  f311c8ea_3396_a84d_4903_c9f074ee3de9["DefaultSocks5InitialResponse.java"]
  76d76b85_cb97_bd06_002b_6e55e61e2202 -->|defined in| f311c8ea_3396_a84d_4903_c9f074ee3de9
  ff7885b3_ad2a_00ea_4eb2_f88cd2511963["DefaultSocks5InitialResponse()"]
  76d76b85_cb97_bd06_002b_6e55e61e2202 -->|method| ff7885b3_ad2a_00ea_4eb2_f88cd2511963
  12a90972_38a1_5274_b75b_6da17bae7b32["Socks5AuthMethod()"]
  76d76b85_cb97_bd06_002b_6e55e61e2202 -->|method| 12a90972_38a1_5274_b75b_6da17bae7b32
  fd175c1d_797d_a026_083d_74408f1ff078["String()"]
  76d76b85_cb97_bd06_002b_6e55e61e2202 -->|method| fd175c1d_797d_a026_083d_74408f1ff078

Relationship Graph

Source Code

codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/DefaultSocks5InitialResponse.java lines 25–55

public class DefaultSocks5InitialResponse extends AbstractSocks5Message implements Socks5InitialResponse {

    private final Socks5AuthMethod authMethod;

    public DefaultSocks5InitialResponse(Socks5AuthMethod authMethod) {
        this.authMethod = ObjectUtil.checkNotNull(authMethod, "authMethod");
    }

    @Override
    public Socks5AuthMethod authMethod() {
        return authMethod;
    }

    @Override
    public String toString() {
        StringBuilder buf = new StringBuilder(StringUtil.simpleClassName(this));

        DecoderResult decoderResult = decoderResult();
        if (!decoderResult.isSuccess()) {
            buf.append("(decoderResult: ");
            buf.append(decoderResult);
            buf.append(", authMethod: ");
        } else {
            buf.append("(authMethod: ");
        }
        buf.append(authMethod());
        buf.append(')');

        return buf.toString();
    }
}

Frequently Asked Questions

What is the DefaultSocks5InitialResponse class?
DefaultSocks5InitialResponse is a class in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/DefaultSocks5InitialResponse.java.
Where is DefaultSocks5InitialResponse defined?
DefaultSocks5InitialResponse is defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/DefaultSocks5InitialResponse.java at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free