Home / Function/ State() — netty Function Reference

State() — netty Function Reference

Architecture documentation for the State() function in StompSubframeDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d328abca_1078_b2e2_44d8_9e62f7682f41["State()"]
  5bc4bbff_e257_f941_b64b_cc169e78395f["StompSubframeDecoder"]
  d328abca_1078_b2e2_44d8_9e62f7682f41 -->|defined in| 5bc4bbff_e257_f941_b64b_cc169e78395f
  99df35d3_4eef_abe1_fc18_c39c3b863c65["parseHeader()"]
  d328abca_1078_b2e2_44d8_9e62f7682f41 -->|calls| 99df35d3_4eef_abe1_fc18_c39c3b863c65
  4a639534_b853_5613_c6d3_d411105bfe77["getContentLength()"]
  d328abca_1078_b2e2_44d8_9e62f7682f41 -->|calls| 4a639534_b853_5613_c6d3_d411105bfe77
  style d328abca_1078_b2e2_44d8_9e62f7682f41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-stomp/src/main/java/io/netty/handler/codec/stomp/StompSubframeDecoder.java lines 207–221

    private State readHeaders(ByteBuf buffer, StompHeadersSubframe headersSubframe) {
        StompHeaders headers = headersSubframe.headers();
        for (;;) {
            boolean headerRead = headerParser.parseHeader(headersSubframe, buffer);
            if (!headerRead) {
                if (headers.contains(StompHeaders.CONTENT_LENGTH)) {
                    contentLength = getContentLength(headers);
                    if (contentLength == 0) {
                        return State.FINALIZE_FRAME_READ;
                    }
                }
                return State.READ_CONTENT;
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does State() do?
State() is a function in the netty codebase, defined in codec-stomp/src/main/java/io/netty/handler/codec/stomp/StompSubframeDecoder.java.
Where is State() defined?
State() is defined in codec-stomp/src/main/java/io/netty/handler/codec/stomp/StompSubframeDecoder.java at line 207.
What does State() call?
State() calls 2 function(s): getContentLength, parseHeader.

Analyze Your Own Codebase

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

Try Supermodel Free