| Constructor and Description |
|---|
DomainNameMapping(int initialCapacity,
V defaultValue)
Deprecated.
use
DomainMappingBuilder to create and fill the mapping instead |
DomainNameMapping(V defaultValue)
Deprecated.
use
DomainMappingBuilder to create and fill the mapping instead |
@Deprecated public DomainNameMapping(V defaultValue)
DomainMappingBuilder to create and fill the mapping insteaddefaultValue - the default value for map(String) to return when nothing matches the input@Deprecated public DomainNameMapping(int initialCapacity, V defaultValue)
DomainMappingBuilder to create and fill the mapping insteadinitialCapacity - initial capacity for the internal mapdefaultValue - the default value for map(String) to return when nothing matches the input@Deprecated public DomainNameMapping<V> add(String hostname, V output)
DomainMappingBuilder to create and fill the mapping instead
DNS wildcard is supported as hostname.
For example, you can use *.netty.io to match netty.io and downloads.netty.io.
hostname - the host name (optionally wildcard)output - the output value that will be returned by map(String) when the specified host name
matches the specified input host namepublic V map(String hostname)
MappingCopyright © 2008–2016 The Netty Project. All rights reserved.