Package nl.sidnlabs.dnslib.util
Class NameUtil
- java.lang.Object
-
- nl.sidnlabs.dnslib.util.NameUtil
-
public class NameUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DomaininfogetDomain(String name)Get domain infostatic DomaininfogetDomain(String name, boolean allowInvalid)
-
-
-
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)
-
-