Class DomainNameMappingBuilder<V>

    • Constructor Detail

      • DomainNameMappingBuilder

        public DomainNameMappingBuilder​(V defaultValue)
        Deprecated.
        Constructor with default initial capacity of the map holding the mappings
        Parameters:
        defaultValue - the default value for DomainNameMapping.map(String) to return when nothing matches the input
      • DomainNameMappingBuilder

        public DomainNameMappingBuilder​(int initialCapacity,
                                        V defaultValue)
        Deprecated.
        Constructor with initial capacity of the map holding the mappings
        Parameters:
        initialCapacity - initial capacity for the internal map
        defaultValue - the default value for DomainNameMapping.map(String) to return when nothing matches the input
    • Method Detail

      • add

        public DomainNameMappingBuilder<V> add​(String hostname,
                                               V output)
        Deprecated.
        Adds a mapping that maps the specified (optionally wildcard) host name to the specified output value. Null values are forbidden for both hostnames and values.

        DNS wildcard is supported as hostname. For example, you can use *.netty.io to match netty.io and downloads.netty.io.

        Parameters:
        hostname - the host name (optionally wildcard)
        output - the output value that will be returned by DomainNameMapping.map(String) when the specified host name matches the specified input host name