Class NameUtil


  • public class NameUtil
    extends Object
    • Method Detail

      • getDomain

        public static Domaininfo getDomain​(String name)
        Get domain info
        Parameters:
        name - name to check
        Returns:
        Domaininfo with the domain name that is one level beneath the public suffix and the # of labels in the input name
      • getDomain

        public static Domaininfo getDomain​(String name,
                                           boolean allowInvalid)