Deprecated
DNS wildcard is supported as hostname, so you can use *.netty.io to match both netty.io
and downloads.netty.io.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final V | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | DomainNameMapping(V
the default value for defaultValue)map(String) to return when nothing matches the input
Deprecated
use
Creates a default, order-sensitive mapping.
DomainNameMappingBuilder to create and fill the mapping instead
|
| public | DomainNameMapping(int
initial capacity for the internal map initialCapacity, V the default value for defaultValue)map(String) to return when nothing matches the input
Deprecated
use
Creates a default, order-sensitive mapping.
DomainNameMappingBuilder to create and fill the mapping instead
|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public DomainNameMapping | add(String
the host name (optionally wildcard) hostname, V the output value that will be returned by output)map(String) when the specified host name
matches the specified input host name
Deprecated
use
Adds a mapping that maps the specified (optionally wildcard) host name to the specified output value.
DomainNameMappingBuilder to create and fill the mapping instead
|
| public Map | |
| public V | map(String hostname)
Implements io. |
| pack-priv static boolean | |
| private static boolean | |
| pack-priv static String | |
| public String |
| defaultValue | back to summary |
|---|---|
| pack-priv final V defaultValue | |
| map | back to summary |
|---|---|
| private final Map<String, V> map | |
| unmodifiableMap | back to summary |
|---|---|
| private final Map<String, V> unmodifiableMap | |
| DomainNameMapping | back to summary |
|---|---|
| public DomainNameMapping(V defaultValue)
Deprecated use Creates a default, order-sensitive mapping. If your hostnames are in conflict, the mapping will choose the one you add first.
| |
| DomainNameMapping | back to summary |
|---|---|
| public DomainNameMapping(int initialCapacity, V defaultValue)
Deprecated use Creates a default, order-sensitive mapping. If your hostnames are in conflict, the mapping will choose the one you add first.
| |
| DomainNameMapping | back to summary |
|---|---|
| pack-priv DomainNameMapping(Map<String, V> map, V defaultValue) | |
| add | back to summary |
|---|---|
| public DomainNameMapping Deprecated use Adds 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
| |
| asMap | back to summary |
|---|---|
| public Map Returns a read-only | |
| map | back to summary |
|---|---|
| public V map(String hostname) Implements io. Doc from io. Returns mapped value of the specified input.
| |
| matches | back to summary |
|---|---|
| pack-priv static boolean matches(String template, String hostName) Simple function to match DNS wildcard. | |
| needsNormalization | back to summary |
|---|---|
| private static boolean needsNormalization(String hostname) | |
| normalizeHostname | back to summary |
|---|---|
| pack-priv static String normalizeHostname(String hostname) IDNA ASCII conversion and case normalization | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |