Package io.milton.dns.resource
Interface DomainResourceFactory
public interface DomainResourceFactory
-
Method Summary
Modifier and TypeMethodDescriptiongetDomainResource(String domainName) Return a DomainResource for the given domain name, or null if the name does not exist.
-
Method Details
-
getDomainResource
Return a DomainResource for the given domain name, or null if the name does not exist. Throwing a NonAuthoritativeException signifies that the nameserver does not have authoritative data for the requested name, while a null response states definitively that there is no such domain. The method must return a ZoneDomainResource for any domain that marks the start of a zone of authority. Implementations should be able to handle domain name Strings that end in a "." as well as those that don't.- Parameters:
domainName-- Returns:
- Throws:
NonAuthoritativeException
-