Package org.minidns.hla
Class SrvResolverResult
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.minidns.hla.ResolverResult
answer, question, result, unverifiedReasons
-
Method Summary
Modifier and TypeMethodDescriptionGet a list ordered by priority and weight of the resolved SRV records.boolean
sortMultiple
(Collection<SrvResolverResult.ResolvedSrvRecord>... resolvedSrvRecordCollections) Convenience method to sort multiple resolved SRV RRs.Methods inherited from class org.minidns.hla.ResolverResult
getAnswers, getAnswersOrEmptySet, getDnsQueryResult, getDnssecResultNotAuthenticException, getQuestion, getRawAnswer, getResolutionUnsuccessfulException, getResponseCode, getUnverifiedReasons, isAuthenticData, throwIfErrorResponse, throwIseIfErrorResponse, toString, wasSuccessful
-
Method Details
-
getSortedSrvResolvedAddresses
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 subsequentA
orAAAA
resource record lookups fail. It will returnnull
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
-
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, whereSrvService.xmpp_client
andSrvService.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.
-