Home / Function/ Attribute() — netty Function Reference

Attribute() — netty Function Reference

Architecture documentation for the Attribute() function in MixedAttribute.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a39cee99_eb22_e1a5_c5e4_cc3fbf345e26["Attribute()"]
  74242bea_a1b1_ca22_9a8c_7bbe7d15e86f["MixedAttribute"]
  a39cee99_eb22_e1a5_c5e4_cc3fbf345e26 -->|defined in| 74242bea_a1b1_ca22_9a8c_7bbe7d15e86f
  style a39cee99_eb22_e1a5_c5e4_cc3fbf345e26 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/MixedAttribute.java lines 65–85

    private static Attribute makeInitialAttributeFromValue(String name, String value, long limitSize, Charset charset,
                                                           String baseDir, boolean deleteOnExit) {
        if (value.length() > limitSize) {
            try {
                return new DiskAttribute(name, value, charset, baseDir, deleteOnExit);
            } catch (IOException e) {
                // revert to Memory mode
                try {
                    return new MemoryAttribute(name, value, charset);
                } catch (IOException ignore) {
                    throw new IllegalArgumentException(e);
                }
            }
        } else {
            try {
                return new MemoryAttribute(name, value, charset);
            } catch (IOException e) {
                throw new IllegalArgumentException(e);
            }
        }
    }

Subdomains

Frequently Asked Questions

What does Attribute() do?
Attribute() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/MixedAttribute.java.
Where is Attribute() defined?
Attribute() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/MixedAttribute.java at line 65.

Analyze Your Own Codebase

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

Try Supermodel Free