Home / Function/ ImmutableDomainNameMapping() — netty Function Reference

ImmutableDomainNameMapping() — netty Function Reference

Architecture documentation for the ImmutableDomainNameMapping() function in DomainNameMappingBuilder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0fafaa25_b5ef_2039_472b_aefea59f1fb0["ImmutableDomainNameMapping()"]
  3d0847f8_b839_0e5d_4c34_8fa3423b62b5["ImmutableDomainNameMapping"]
  0fafaa25_b5ef_2039_472b_aefea59f1fb0 -->|defined in| 3d0847f8_b839_0e5d_4c34_8fa3423b62b5
  style 0fafaa25_b5ef_2039_472b_aefea59f1fb0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/DomainNameMappingBuilder.java lines 104–125

        @SuppressWarnings("unchecked")
        private ImmutableDomainNameMapping(V defaultValue, Map<String, V> map) {
            super(null, defaultValue);

            Set<Map.Entry<String, V>> mappings = map.entrySet();
            int numberOfMappings = mappings.size();
            domainNamePatterns = new String[numberOfMappings];
            values = (V[]) new Object[numberOfMappings];

            final Map<String, V> mapCopy = new LinkedHashMap<String, V>(map.size());
            int index = 0;
            for (Map.Entry<String, V> mapping : mappings) {
                final String hostname = normalizeHostname(mapping.getKey());
                final V value = mapping.getValue();
                domainNamePatterns[index] = hostname;
                values[index] = value;
                mapCopy.put(hostname, value);
                ++index;
            }

            this.map = Collections.unmodifiableMap(mapCopy);
        }

Domain

Subdomains

Frequently Asked Questions

What does ImmutableDomainNameMapping() do?
ImmutableDomainNameMapping() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/DomainNameMappingBuilder.java.
Where is ImmutableDomainNameMapping() defined?
ImmutableDomainNameMapping() is defined in common/src/main/java/io/netty/util/DomainNameMappingBuilder.java at line 104.

Analyze Your Own Codebase

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

Try Supermodel Free