Package io.netty.util
Class DomainNameMapping<V>
java.lang.Object
io.netty.util.DomainNameMapping<V>
- Direct Known Subclasses:
DomainNameMappingBuilder.ImmutableDomainNameMapping
Deprecated.
Maps a domain name to its associated value object.
DNS wildcard is supported as hostname, so you can use *.netty.io
to match both netty.io
and downloads.netty.io
.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDomainNameMapping
(int initialCapacity, V defaultValue) Deprecated.useDomainNameMappingBuilder
to create and fill the mapping insteadDomainNameMapping
(Map<String, V> map, V defaultValue) Deprecated.DomainNameMapping
(V defaultValue) Deprecated.useDomainNameMappingBuilder
to create and fill the mapping instead -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.useDomainNameMappingBuilder
to create and fill the mapping insteadasMap()
Deprecated.Returns a read-onlyMap
of the domain mapping patterns and their associated value objects.Deprecated.Returns mapped value of the specified input.(package private) static boolean
Deprecated.Simple function to match DNS wildcard.private static boolean
needsNormalization
(String hostname) Deprecated.(package private) static String
normalizeHostname
(String hostname) Deprecated.IDNA ASCII conversion and case normalizationtoString()
Deprecated.
-
Field Details
-
defaultValue
Deprecated. -
map
Deprecated. -
unmodifiableMap
Deprecated.
-
-
Constructor Details
-
DomainNameMapping
Deprecated.useDomainNameMappingBuilder
to create and fill the mapping insteadCreates a default, order-sensitive mapping. If your hostnames are in conflict, the mapping will choose the one you add first.- Parameters:
defaultValue
- the default value formap(String)
to return when nothing matches the input
-
DomainNameMapping
Deprecated.useDomainNameMappingBuilder
to create and fill the mapping insteadCreates a default, order-sensitive mapping. If your hostnames are in conflict, the mapping will choose the one you add first.- Parameters:
initialCapacity
- initial capacity for the internal mapdefaultValue
- the default value formap(String)
to return when nothing matches the input
-
DomainNameMapping
Deprecated.
-
-
Method Details
-
add
Deprecated.useDomainNameMappingBuilder
to create and fill the mapping insteadAdds a mapping that maps the specified (optionally wildcard) host name to the specified output value.DNS wildcard is supported as hostname. For example, you can use
*.netty.io
to matchnetty.io
anddownloads.netty.io
.- Parameters:
hostname
- the host name (optionally wildcard)output
- the output value that will be returned bymap(String)
when the specified host name matches the specified input host name
-
matches
Deprecated.Simple function to match DNS wildcard. -
normalizeHostname
Deprecated.IDNA ASCII conversion and case normalization -
needsNormalization
Deprecated. -
map
Deprecated.Description copied from interface:Mapping
Returns mapped value of the specified input. -
asMap
Deprecated.Returns a read-onlyMap
of the domain mapping patterns and their associated value objects. -
toString
Deprecated.
-
DomainWildcardMappingBuilder
}