Home / Function/ getContentLength() — netty Function Reference

getContentLength() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-stomp/src/main/java/io/netty/handler/codec/stomp/StompSubframeDecoder.java lines 223–229

    private static long getContentLength(StompHeaders headers) {
        long contentLength = headers.getLong(StompHeaders.CONTENT_LENGTH, 0L);
        if (contentLength < 0) {
            throw new DecoderException(StompHeaders.CONTENT_LENGTH + " must be non-negative");
        }
        return contentLength;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free