String() — netty Function Reference
Architecture documentation for the String() function in DomainWildcardMappingBuilder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3acf92cd_1ce0_94d9_7748_898f4ecdfcca["String()"] 66ff1c37_4c85_96b1_f0ce_54b11bf7df4c["DomainWildcardMappingBuilder"] 3acf92cd_1ce0_94d9_7748_898f4ecdfcca -->|defined in| 66ff1c37_4c85_96b1_f0ce_54b11bf7df4c style 3acf92cd_1ce0_94d9_7748_898f4ecdfcca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/DomainWildcardMappingBuilder.java lines 78–91
private String normalizeHostName(String hostname) {
checkNotNull(hostname, "hostname");
if (hostname.isEmpty() || hostname.charAt(0) == '.') {
throw new IllegalArgumentException("Hostname '" + hostname + "' not valid");
}
hostname = ImmutableDomainWildcardMapping.normalize(checkNotNull(hostname, "hostname"));
if (hostname.charAt(0) == '*') {
if (hostname.length() < 3 || hostname.charAt(1) != '.') {
throw new IllegalArgumentException("Wildcard Hostname '" + hostname + "'not valid");
}
return hostname.substring(1);
}
return hostname;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does String() do?
String() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/DomainWildcardMappingBuilder.java.
Where is String() defined?
String() is defined in common/src/main/java/io/netty/util/DomainWildcardMappingBuilder.java at line 78.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free