Home / Function/ portStringToInt() — netty Function Reference

portStringToInt() — netty Function Reference

Architecture documentation for the portStringToInt() function in HAProxyMessage.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  12f6af6e_6ca5_e26e_9da6_9cfaf23e27fa["portStringToInt()"]
  086e8ebe_0b5c_c158_91d0_e3710503e584["HAProxyMessage"]
  12f6af6e_6ca5_e26e_9da6_9cfaf23e27fa -->|defined in| 086e8ebe_0b5c_c158_91d0_e3710503e584
  f4a83627_4b55_e57a_4cc8_cf8ebe863872["HAProxyMessage()"]
  f4a83627_4b55_e57a_4cc8_cf8ebe863872 -->|calls| 12f6af6e_6ca5_e26e_9da6_9cfaf23e27fa
  style 12f6af6e_6ca5_e26e_9da6_9cfaf23e27fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java lines 406–419

    private static int portStringToInt(String value) {
        int port;
        try {
            port = Integer.parseInt(value);
        } catch (NumberFormatException e) {
            throw new IllegalArgumentException("invalid port: " + value, e);
        }

        if (port <= 0 || port > 65535) {
            throw new IllegalArgumentException("invalid port: " + value + " (expected: 1 ~ 65535)");
        }

        return port;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does portStringToInt() do?
portStringToInt() is a function in the netty codebase, defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java.
Where is portStringToInt() defined?
portStringToInt() is defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java at line 406.
What calls portStringToInt()?
portStringToInt() is called by 1 function(s): HAProxyMessage.

Analyze Your Own Codebase

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

Try Supermodel Free