Package google.registry.tldconfig.idn
Class IdnLabelValidator
java.lang.Object
google.registry.tldconfig.idn.IdnLabelValidator
Validates whether a given IDN label can be provisioned for a particular TLD.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindValidIdnTableForTld
(String label, String tldStr) Returns name of first matchingIdnTable
if domain label is valid for the given TLD.com.google.common.collect.ImmutableSet
<IdnTableEnum> getIdnTablesForTld
(Tld tld) Returns the names of the IDN tables supported by atld
.
-
Constructor Details
-
IdnLabelValidator
public IdnLabelValidator()
-
-
Method Details
-
findValidIdnTableForTld
Returns name of first matchingIdnTable
if domain label is valid for the given TLD.A label is valid if it is considered valid by at least one configured IDN table for that TLD. If no match is found, an absent value is returned.
-
getIdnTablesForTld
Returns the names of the IDN tables supported by atld
.
-