Package org.minidns.hla
Class ResolverResult<D extends org.minidns.record.Data>
- java.lang.Object
-
- org.minidns.hla.ResolverResult<D>
-
- Direct Known Subclasses:
SrvResolverResult
public class ResolverResult<D extends org.minidns.record.Data> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.minidns.dnsmessage.DnsMessageanswerprotected org.minidns.dnsmessage.Questionquestionprotected org.minidns.dnsqueryresult.DnsQueryResultresultprotected java.util.Set<org.minidns.dnssec.DnssecUnverifiedReason>unverifiedReasons
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<D>getAnswers()java.util.Set<D>getAnswersOrEmptySet()org.minidns.dnsqueryresult.DnsQueryResultgetDnsQueryResult()org.minidns.dnssec.DnssecResultNotAuthenticExceptiongetDnssecResultNotAuthenticException()org.minidns.dnsmessage.QuestiongetQuestion()org.minidns.dnsmessage.DnsMessagegetRawAnswer()Get the raw answer DNS message we received.ResolutionUnsuccessfulExceptiongetResolutionUnsuccessfulException()org.minidns.dnsmessage.DnsMessage.RESPONSE_CODEgetResponseCode()java.util.Set<org.minidns.dnssec.DnssecUnverifiedReason>getUnverifiedReasons()Get the reasons the result could not be verified if any exists.booleanisAuthenticData()voidthrowIfErrorResponse()protected voidthrowIseIfErrorResponse()java.lang.StringtoString()booleanwasSuccessful()
-
-
-
Field Detail
-
question
protected final org.minidns.dnsmessage.Question question
-
unverifiedReasons
protected final java.util.Set<org.minidns.dnssec.DnssecUnverifiedReason> unverifiedReasons
-
answer
protected final org.minidns.dnsmessage.DnsMessage answer
-
result
protected final org.minidns.dnsqueryresult.DnsQueryResult result
-
-
Method Detail
-
wasSuccessful
public boolean wasSuccessful()
-
getAnswers
public java.util.Set<D> getAnswers()
-
getAnswersOrEmptySet
public java.util.Set<D> getAnswersOrEmptySet()
-
getResponseCode
public org.minidns.dnsmessage.DnsMessage.RESPONSE_CODE getResponseCode()
-
isAuthenticData
public boolean isAuthenticData()
-
getUnverifiedReasons
public java.util.Set<org.minidns.dnssec.DnssecUnverifiedReason> getUnverifiedReasons()
Get the reasons the result could not be verified if any exists.- Returns:
- The reasons the result could not be verified or
null.
-
getQuestion
public org.minidns.dnsmessage.Question getQuestion()
-
throwIfErrorResponse
public void throwIfErrorResponse() throws ResolutionUnsuccessfulException- Throws:
ResolutionUnsuccessfulException
-
getResolutionUnsuccessfulException
public ResolutionUnsuccessfulException getResolutionUnsuccessfulException()
-
getDnssecResultNotAuthenticException
public org.minidns.dnssec.DnssecResultNotAuthenticException getDnssecResultNotAuthenticException()
-
getRawAnswer
public org.minidns.dnsmessage.DnsMessage getRawAnswer()
Get the raw answer DNS message we received. This is likely not what you want, trygetAnswers()instead.- Returns:
- the raw answer DNS Message.
- See Also:
getAnswers()
-
getDnsQueryResult
public org.minidns.dnsqueryresult.DnsQueryResult getDnsQueryResult()
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
throwIseIfErrorResponse
protected void throwIseIfErrorResponse()
-
-