@Deprecated public class DomainNameMapping<V> extends java.lang.Object implements Mapping<java.lang.String,V>
DNS wildcard is supported as hostname, so you can use *.netty.io to match both netty.io
and downloads.netty.io.
| 构造器和说明 |
|---|
DomainNameMapping(int initialCapacity,
V defaultValue)
已过时。
use
DomainNameMappingBuilder to create and fill the mapping instead |
DomainNameMapping(V defaultValue)
已过时。
use
DomainNameMappingBuilder to create and fill the mapping instead |
| 限定符和类型 | 方法和说明 |
|---|---|
DomainNameMapping<V> |
add(java.lang.String hostname,
V output)
已过时。
use
DomainNameMappingBuilder to create and fill the mapping instead |
java.util.Map<java.lang.String,V> |
asMap()
已过时。
Returns a read-only
Map of the domain mapping patterns and their associated value objects. |
V |
map(java.lang.String hostname)
已过时。
Returns mapped value of the specified input.
|
java.lang.String |
toString()
已过时。
|
@Deprecated public DomainNameMapping(V defaultValue)
DomainNameMappingBuilder 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)
DomainNameMappingBuilder 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(java.lang.String hostname, V output)
DomainNameMappingBuilder 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(java.lang.String hostname)
Mappingpublic java.util.Map<java.lang.String,V> asMap()
Map of the domain mapping patterns and their associated value objects.public java.lang.String toString()
toString 在类中 java.lang.Object