Home / Function/ State() — netty Function Reference

State() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  494d4d54_a335_a1ab_8d57_a8b522f9cbc2["State()"]
  d466aa70_56c1_4a3c_18e4_88294be3659b["SpdyFrameDecoder"]
  494d4d54_a335_a1ab_8d57_a8b522f9cbc2 -->|defined in| d466aa70_56c1_4a3c_18e4_88294be3659b
  style 494d4d54_a335_a1ab_8d57_a8b522f9cbc2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java lines 393–430

    private static State getNextState(int type, int length) {
        switch (type) {
            case SPDY_DATA_FRAME:
                return State.READ_DATA_FRAME;

            case SPDY_SYN_STREAM_FRAME:
                return State.READ_SYN_STREAM_FRAME;

            case SPDY_SYN_REPLY_FRAME:
                return State.READ_SYN_REPLY_FRAME;

            case SPDY_RST_STREAM_FRAME:
                return State.READ_RST_STREAM_FRAME;

            case SPDY_SETTINGS_FRAME:
                return State.READ_SETTINGS_FRAME;

            case SPDY_PING_FRAME:
                return State.READ_PING_FRAME;

            case SPDY_GOAWAY_FRAME:
                return State.READ_GOAWAY_FRAME;

            case SPDY_HEADERS_FRAME:
                return State.READ_HEADERS_FRAME;

            case SPDY_WINDOW_UPDATE_FRAME:
                return State.READ_WINDOW_UPDATE_FRAME;

            default:

                if (length != 0) {
                    return State.DISCARD_FRAME;
                } else {
                    return State.READ_COMMON_HEADER;
                }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does State() do?
State() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java.
Where is State() defined?
State() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java at line 393.

Analyze Your Own Codebase

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

Try Supermodel Free