encodeNotHttpMessageContentTypes() — netty Function Reference
Architecture documentation for the encodeNotHttpMessageContentTypes() function in HttpObjectEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9ac1b386_8738_51d3_522c_d4e7b37c3049["encodeNotHttpMessageContentTypes()"] 14c61705_9541_276a_37fa_eaab6f15ec5a["HttpObjectEncoder"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|defined in| 14c61705_9541_276a_37fa_eaab6f15ec5a 18cc7b78_3c6e_f726_9bf6_777174f30988["encode()"] 18cc7b78_3c6e_f726_9bf6_777174f30988 -->|calls| 9ac1b386_8738_51d3_522c_d4e7b37c3049 092bf357_4854_e9a7_a7fa_af9b3aa02fa4["bypassEncoderIfEmpty()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| 092bf357_4854_e9a7_a7fa_af9b3aa02fa4 a269521d_6b98_a05f_40e6_74c9bd5dcc51["throwUnexpectedMessageTypeEx()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| a269521d_6b98_a05f_40e6_74c9bd5dcc51 52e62095_c8cc_bcbd_15d9_3ff5a934c74a["encodeEmptyLastHttpContent()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| 52e62095_c8cc_bcbd_15d9_3ff5a934c74a ff751625_d4a6_e38b_7393_ce3baf266fde["encodeLastHttpContent()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| ff751625_d4a6_e38b_7393_ce3baf266fde 73dee77d_2481_a5f6_e124_a913ffc8b63b["encodeHttpContent()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| 73dee77d_2481_a5f6_e124_a913ffc8b63b a790359d_1fc9_3acc_3deb_43ba277c843a["encodeByteBufContent()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| a790359d_1fc9_3acc_3deb_43ba277c843a 4d5953cb_854c_5e28_6a1b_484139dd485f["encodeFileRegionContent()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| 4d5953cb_854c_5e28_6a1b_484139dd485f style 9ac1b386_8738_51d3_522c_d4e7b37c3049 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java lines 267–305
@SuppressWarnings("ConditionCoveredByFurtherCondition")
private void encodeNotHttpMessageContentTypes(ChannelHandlerContext ctx, Object msg, List<Object> out) {
assert !(msg instanceof HttpMessage);
if (state == ST_INIT) {
try {
if (msg instanceof ByteBuf && bypassEncoderIfEmpty((ByteBuf) msg, out)) {
return;
}
throwUnexpectedMessageTypeEx(msg, ST_INIT);
} finally {
ReferenceCountUtil.release(msg);
}
}
if (msg == LastHttpContent.EMPTY_LAST_CONTENT) {
state = encodeEmptyLastHttpContent(state, out);
return;
}
if (msg instanceof LastHttpContent) {
encodeLastHttpContent(ctx, (LastHttpContent) msg, out);
return;
}
if (msg instanceof HttpContent) {
encodeHttpContent(ctx, (HttpContent) msg, out);
return;
}
if (msg instanceof ByteBuf) {
encodeByteBufContent(ctx, (ByteBuf) msg, out);
return;
}
if (msg instanceof FileRegion) {
encodeFileRegionContent(ctx, (FileRegion) msg, out);
return;
}
try {
throwUnexpectedMessageTypeEx(msg, state);
} finally {
ReferenceCountUtil.release(msg);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does encodeNotHttpMessageContentTypes() do?
encodeNotHttpMessageContentTypes() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java.
Where is encodeNotHttpMessageContentTypes() defined?
encodeNotHttpMessageContentTypes() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java at line 267.
What does encodeNotHttpMessageContentTypes() call?
encodeNotHttpMessageContentTypes() calls 7 function(s): bypassEncoderIfEmpty, encodeByteBufContent, encodeEmptyLastHttpContent, encodeFileRegionContent, encodeHttpContent, encodeLastHttpContent, throwUnexpectedMessageTypeEx.
What calls encodeNotHttpMessageContentTypes()?
encodeNotHttpMessageContentTypes() is called by 1 function(s): encode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free