Home / Function/ matches() — netty Function Reference

matches() — netty Function Reference

Architecture documentation for the matches() function in DomainNameMapping.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f8726707_67c9_c600_1239_abbc09537fa2["matches()"]
  c25c4773_f951_fbcd_4633_f867679f934d["DomainNameMapping"]
  f8726707_67c9_c600_1239_abbc09537fa2 -->|defined in| c25c4773_f951_fbcd_4633_f867679f934d
  83350eec_9113_e0c4_bf35_4a6088c63d98["V()"]
  83350eec_9113_e0c4_bf35_4a6088c63d98 -->|calls| f8726707_67c9_c600_1239_abbc09537fa2
  style f8726707_67c9_c600_1239_abbc09537fa2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/DomainNameMapping.java lines 98–104

    static boolean matches(String template, String hostName) {
        if (template.startsWith("*.")) {
            return template.regionMatches(2, hostName, 0, hostName.length())
                || commonSuffixOfLength(hostName, template, template.length() - 1);
        }
        return template.equals(hostName);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does matches() do?
matches() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/DomainNameMapping.java.
Where is matches() defined?
matches() is defined in common/src/main/java/io/netty/util/DomainNameMapping.java at line 98.
What calls matches()?
matches() is called by 1 function(s): V.

Analyze Your Own Codebase

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

Try Supermodel Free