Class SrvResolverResult

java.lang.Object
org.minidns.hla.ResolverResult<org.minidns.record.SRV>
org.minidns.hla.SrvResolverResult

public class SrvResolverResult extends ResolverResult<org.minidns.record.SRV>
  • Method Details

    • getSortedSrvResolvedAddresses

      public List<SrvResolverResult.ResolvedSrvRecord> getSortedSrvResolvedAddresses() throws IOException
      Get a list ordered by priority and weight of the resolved SRV records. This method will throw if there was an error response or if subsequent A or AAAA resource record lookups fail. It will return null in case the service is decidedly not available at this domain.
      Returns:
      a list ordered by priority and weight of the related SRV records.
      Throws:
      IOException - in case an I/O error occurs.
    • isServiceDecidedlyNotAvailableAtThisDomain

      public boolean isServiceDecidedlyNotAvailableAtThisDomain()
    • sortMultiple

      @SafeVarargs public static List<SrvResolverResult.ResolvedSrvRecord> sortMultiple(Collection<SrvResolverResult.ResolvedSrvRecord>... resolvedSrvRecordCollections)
      Convenience method to sort multiple resolved SRV RRs. This is for example required by XEP-0368, where SrvService.xmpp_client and SrvService.xmpps_client may be sorted together.
      Parameters:
      resolvedSrvRecordCollections - a collection of resolved SRV records.
      Returns:
      a list ordered by priority and weight of the related SRV records.