Interface DNSServices

  • All Known Implementing Classes:
    DNSServicesDefaultImpl

    public interface DNSServices
    This interface defines the contract for the DNS Service provider.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.xbill.DNS.Record[] getConfigFileTXTRecords​(java.lang.String moduleId, int timeoutMillis)
      Get the Module Configuration from DNS as an array of Records
      org.xbill.DNS.Record[] getRecordFromDns​(java.lang.String query, int timeoutMillis, boolean checkDnsSecValidity)
      Get a NUM record from DNS.
      java.lang.String rebuildTXTRecordContent​(org.xbill.DNS.Record[] records)
      Concatenate an array of TXT record values to a single String
    • Method Detail

      • rebuildTXTRecordContent

        java.lang.String rebuildTXTRecordContent​(org.xbill.DNS.Record[] records)
        Concatenate an array of TXT record values to a single String
        Parameters:
        records - The array of Records
        Returns:
        The concatenated result.
      • getRecordFromDns

        org.xbill.DNS.Record[] getRecordFromDns​(java.lang.String query,
                                                int timeoutMillis,
                                                boolean checkDnsSecValidity)
                                         throws NumNotImplementedException,
                                                NumInvalidDNSQueryException
        Get a NUM record from DNS.
        Parameters:
        query - The NUM formatted DNS query.
        timeoutMillis - The number of milliseconds to wait for a response.
        checkDnsSecValidity - true if the result should be checked for DNSSEC validity.
        Returns:
        An array of Records
        Throws:
        NumNotImplementedException - on error
        NumInvalidDNSQueryException - on error