State() — netty Function Reference
Architecture documentation for the State() function in DefaultHttp2Connection.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f9868bd5_8c0e_cae4_fc5d_4220ca0e8dd5["State()"] 05fa194d_d048_a70f_6ef9_91439d2abc10["DefaultHttp2Connection"] f9868bd5_8c0e_cae4_fc5d_4220ca0e8dd5 -->|defined in| 05fa194d_d048_a70f_6ef9_91439d2abc10 style f9868bd5_8c0e_cae4_fc5d_4220ca0e8dd5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java lines 327–340
static State activeState(int streamId, State initialState, boolean isLocal, boolean halfClosed)
throws Http2Exception {
switch (initialState) {
case IDLE:
return halfClosed ? isLocal ? HALF_CLOSED_LOCAL : HALF_CLOSED_REMOTE : OPEN;
case RESERVED_LOCAL:
return HALF_CLOSED_REMOTE;
case RESERVED_REMOTE:
return HALF_CLOSED_LOCAL;
default:
throw streamError(streamId, PROTOCOL_ERROR, "Attempting to open a stream in an invalid state: "
+ initialState);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does State() do?
State() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java.
Where is State() defined?
State() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java at line 327.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free