Package org.minidns.hla
Class SrvResolverResult
- java.lang.Object
-
- org.minidns.hla.ResolverResult<SRV>
-
- org.minidns.hla.SrvResolverResult
-
public class SrvResolverResult extends ResolverResult<SRV>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SrvResolverResult.ResolvedSrvRecord
-
Field Summary
-
Fields inherited from class org.minidns.hla.ResolverResult
answer, question, result, unverifiedReasons
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<SrvResolverResult.ResolvedSrvRecord>
getSortedSrvResolvedAddresses()
Get a list ordered by priority and weight of the resolved SRV records.boolean
isServiceDecidedlyNotAvailableAtThisDomain()
static java.util.List<SrvResolverResult.ResolvedSrvRecord>
sortMultiple(java.util.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 Detail
-
getSortedSrvResolvedAddresses
public java.util.List<SrvResolverResult.ResolvedSrvRecord> getSortedSrvResolvedAddresses() throws java.io.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 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:
java.io.IOException
- in case an I/O error occurs.
-
isServiceDecidedlyNotAvailableAtThisDomain
public boolean isServiceDecidedlyNotAvailableAtThisDomain()
-
sortMultiple
@SafeVarargs public static java.util.List<SrvResolverResult.ResolvedSrvRecord> sortMultiple(java.util.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.
-
-