Package org.minidns.hla
Class ResolverResult<D extends Data>
- java.lang.Object
-
- org.minidns.hla.ResolverResult<D>
-
- Direct Known Subclasses:
SrvResolverResult
public class ResolverResult<D extends Data> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DnsMessageanswerprotected Questionquestionprotected DnsQueryResultresultprotected Set<DnssecUnverifiedReason>unverifiedReasons
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<D>getAnswers()Set<D>getAnswersOrEmptySet()DnsQueryResultgetDnsQueryResult()DnssecResultNotAuthenticExceptiongetDnssecResultNotAuthenticException()QuestiongetQuestion()DnsMessagegetRawAnswer()Get the raw answer DNS message we received.ResolutionUnsuccessfulExceptiongetResolutionUnsuccessfulException()DnsMessage.RESPONSE_CODEgetResponseCode()Set<DnssecUnverifiedReason>getUnverifiedReasons()Get the reasons the result could not be verified if any exists.booleanisAuthenticData()voidthrowIfErrorResponse()protected voidthrowIseIfErrorResponse()StringtoString()booleanwasSuccessful()
-
-
-
Field Detail
-
unverifiedReasons
protected final Set<DnssecUnverifiedReason> unverifiedReasons
-
answer
protected final DnsMessage answer
-
result
protected final DnsQueryResult result
-
-
Method Detail
-
wasSuccessful
public boolean wasSuccessful()
-
getAnswers
public Set<D> getAnswers()
-
getAnswersOrEmptySet
public Set<D> getAnswersOrEmptySet()
-
getResponseCode
public DnsMessage.RESPONSE_CODE getResponseCode()
-
isAuthenticData
public boolean isAuthenticData()
-
getUnverifiedReasons
public Set<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 Question getQuestion()
-
throwIfErrorResponse
public void throwIfErrorResponse() throws ResolutionUnsuccessfulException
- Throws:
ResolutionUnsuccessfulException
-
getResolutionUnsuccessfulException
public ResolutionUnsuccessfulException getResolutionUnsuccessfulException()
-
getDnssecResultNotAuthenticException
public DnssecResultNotAuthenticException getDnssecResultNotAuthenticException()
-
getRawAnswer
public 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 DnsQueryResult getDnsQueryResult()
-
throwIseIfErrorResponse
protected void throwIseIfErrorResponse()
-
-