Package google.registry.flows.host
Class HostFlowUtils
java.lang.Object
google.registry.flows.host.HostFlowUtils
Static utility functions for host flows.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlookupSuperordinateDomain
(com.google.common.net.InternetDomainName hostName, org.joda.time.DateTime now) Return theDomain
this host is subordinate to, or null for external hosts.static com.google.common.net.InternetDomainName
validateHostName
(String name) Checks that a host name is valid.
-
Constructor Details
-
HostFlowUtils
public HostFlowUtils()
-
-
Method Details
-
validateHostName
public static com.google.common.net.InternetDomainName validateHostName(String name) throws EppException Checks that a host name is valid.- Throws:
EppException
-
lookupSuperordinateDomain
public static Optional<Domain> lookupSuperordinateDomain(com.google.common.net.InternetDomainName hostName, org.joda.time.DateTime now) throws EppException Return theDomain
this host is subordinate to, or null for external hosts.- Throws:
EppException
-