Home / Class/ Socks4CommonTestUtils Class — netty Architecture

Socks4CommonTestUtils Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  20192ff3_0c51_733a_d66b_558f0aa2ce9a["Socks4CommonTestUtils"]
  56111893_2dc7_82ed_ce61_f693649393bb["Socks4CommonTestUtils.java"]
  20192ff3_0c51_733a_d66b_558f0aa2ce9a -->|defined in| 56111893_2dc7_82ed_ce61_f693649393bb
  82099af1_de97_06d3_949e_246a2838309a["Socks4CommonTestUtils()"]
  20192ff3_0c51_733a_d66b_558f0aa2ce9a -->|method| 82099af1_de97_06d3_949e_246a2838309a
  b54220d2_0acd_3b38_fa70_35c7c96d7e70["writeMessageIntoEmbedder()"]
  20192ff3_0c51_733a_d66b_558f0aa2ce9a -->|method| b54220d2_0acd_3b38_fa70_35c7c96d7e70

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4CommonTestUtils.java lines 21–40

final class Socks4CommonTestUtils {
    /**
     * A constructor to stop this class being constructed.
     */
    private Socks4CommonTestUtils() {
        //NOOP
    }

    public static void writeMessageIntoEmbedder(EmbeddedChannel embedder, Socks4Message msg) {
        EmbeddedChannel out;
        if (msg instanceof Socks4CommandRequest) {
            out = new EmbeddedChannel(Socks4ClientEncoder.INSTANCE);
        } else {
            out = new EmbeddedChannel(Socks4ServerEncoder.INSTANCE);
        }
        out.writeOutbound(msg);
        embedder.writeInbound(out.<ByteBuf>readOutbound());
        out.finish();
    }
}

Frequently Asked Questions

What is the Socks4CommonTestUtils class?
Socks4CommonTestUtils is a class in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4CommonTestUtils.java.
Where is Socks4CommonTestUtils defined?
Socks4CommonTestUtils is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4CommonTestUtils.java at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free