Package org.minidns.hla
Class ResolverResult<D extends org.minidns.record.Data>
java.lang.Object
org.minidns.hla.ResolverResult<D>
- Direct Known Subclasses:
SrvResolverResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.minidns.dnsmessage.DnsMessageprotected final org.minidns.dnsmessage.Questionprotected final org.minidns.dnsqueryresult.DnsQueryResultprotected final Set<org.minidns.dnssec.DnssecUnverifiedReason> -
Method Summary
Modifier and TypeMethodDescriptionorg.minidns.dnsqueryresult.DnsQueryResultorg.minidns.dnssec.DnssecResultNotAuthenticExceptionorg.minidns.dnsmessage.Questionorg.minidns.dnsmessage.DnsMessageGet the raw answer DNS message we received.org.minidns.dnsmessage.DnsMessage.RESPONSE_CODESet<org.minidns.dnssec.DnssecUnverifiedReason> Get the reasons the result could not be verified if any exists.booleanvoidprotected voidfinal StringtoString()boolean
-
Field Details
-
question
protected final org.minidns.dnsmessage.Question question -
unverifiedReasons
-
answer
protected final org.minidns.dnsmessage.DnsMessage answer -
result
protected final org.minidns.dnsqueryresult.DnsQueryResult result
-
-
Method Details
-
wasSuccessful
public boolean wasSuccessful() -
getAnswers
-
getAnswersOrEmptySet
-
getResponseCode
public org.minidns.dnsmessage.DnsMessage.RESPONSE_CODE getResponseCode() -
isAuthenticData
public boolean isAuthenticData() -
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
- Throws:
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:
-
getDnsQueryResult
public org.minidns.dnsqueryresult.DnsQueryResult getDnsQueryResult() -
toString
-
throwIseIfErrorResponse
protected void throwIseIfErrorResponse()
-