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 List<SrvResolverResult.ResolvedSrvRecord>
getSortedSrvResolvedAddresses()
Get a list ordered by priority and weight of the resolved SRV records.boolean
isServiceDecidedlyNotAvailableAtThisDomain()
static List<SrvResolverResult.ResolvedSrvRecord>
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 Detail
-
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 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
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, 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.
-
-