Home / Function/ setContent() — netty Function Reference

setContent() — netty Function Reference

Architecture documentation for the setContent() function in AbstractMixedHttpData.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2c603ffe_019e_55c1_7c83_91eb9c7e055f["setContent()"]
  98233652_bb29_50f3_e596_2812fd02b555["AbstractMixedHttpData"]
  2c603ffe_019e_55c1_7c83_91eb9c7e055f -->|defined in| 98233652_bb29_50f3_e596_2812fd02b555
  21bbd55c_2ca6_858e_dd09_5ab2962d98be["checkSize()"]
  2c603ffe_019e_55c1_7c83_91eb9c7e055f -->|calls| 21bbd55c_2ca6_858e_dd09_5ab2962d98be
  8a58a5d8_58d8_dd4d_3013_3532ba44ef92["length()"]
  2c603ffe_019e_55c1_7c83_91eb9c7e055f -->|calls| 8a58a5d8_58d8_dd4d_3013_3532ba44ef92
  style 2c603ffe_019e_55c1_7c83_91eb9c7e055f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMixedHttpData.java lines 149–165

    @Override
    public void setContent(ByteBuf buffer) throws IOException {
        try {
            checkSize(buffer.readableBytes());
        } catch (IOException e) {
            buffer.release();
            throw e;
        }
        if (buffer.readableBytes() > limitSize) {
            if (wrapped instanceof AbstractMemoryHttpData) {
                // change to Disk
                wrapped.release();
                wrapped = makeDiskData();
            }
        }
        wrapped.setContent(buffer);
    }

Subdomains

Frequently Asked Questions

What does setContent() do?
setContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMixedHttpData.java.
Where is setContent() defined?
setContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMixedHttpData.java at line 149.
What does setContent() call?
setContent() calls 2 function(s): checkSize, length.

Analyze Your Own Codebase

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

Try Supermodel Free