Home / Class/ HttpNativeClient Class — netty Architecture

HttpNativeClient Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  d0ea4c6e_fed9_1f88_64e1_42fb3c7de3dc["HttpNativeClient"]
  9b1a991b_19f7_10a0_6e79_8e99064329d4["HttpNativeClient.java"]
  d0ea4c6e_fed9_1f88_64e1_42fb3c7de3dc -->|defined in| 9b1a991b_19f7_10a0_6e79_8e99064329d4
  99895bbf_e462_7656_645d_3257cab2a260["HttpNativeClient()"]
  d0ea4c6e_fed9_1f88_64e1_42fb3c7de3dc -->|method| 99895bbf_e462_7656_645d_3257cab2a260
  d35770f7_7b6c_0d92_ad86_be0ba3863884["Channel()"]
  d0ea4c6e_fed9_1f88_64e1_42fb3c7de3dc -->|method| d35770f7_7b6c_0d92_ad86_be0ba3863884

Relationship Graph

Source Code

testsuite-native-image/src/main/java/io/netty/testsuite/svm/HttpNativeClient.java lines 25–48

public class HttpNativeClient {

    private final int port;

    private final EventLoopGroup group;

    private final Class<? extends Channel> channelType;

    public HttpNativeClient(int port, EventLoopGroup group, Class<? extends Channel> channelType) {
        this.port = port;
        this.group = group;
        this.channelType = channelType;
    }

    public Channel initClient() throws InterruptedException {
        Channel clientChannel = new Bootstrap()
                .group(group)
                .channel(channelType)
                .handler(new HttpClientCodec())
                .connect("localhost", port)
                .sync().channel();
        return clientChannel;
    }
}

Frequently Asked Questions

What is the HttpNativeClient class?
HttpNativeClient is a class in the netty codebase, defined in testsuite-native-image/src/main/java/io/netty/testsuite/svm/HttpNativeClient.java.
Where is HttpNativeClient defined?
HttpNativeClient is defined in testsuite-native-image/src/main/java/io/netty/testsuite/svm/HttpNativeClient.java at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free