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 Object
  • Field Details

    • question

      protected final org.minidns.dnsmessage.Question question
    • unverifiedReasons

      protected final Set<org.minidns.dnssec.DnssecUnverifiedReason> unverifiedReasons
    • answer

      protected final org.minidns.dnsmessage.DnsMessage answer
    • result

      protected final org.minidns.dnsqueryresult.DnsQueryResult result
  • Method Details

    • wasSuccessful

      public boolean wasSuccessful()
    • getAnswers

      public Set<D> getAnswers()
    • getAnswersOrEmptySet

      public Set<D> getAnswersOrEmptySet()
    • getResponseCode

      public org.minidns.dnsmessage.DnsMessage.RESPONSE_CODE getResponseCode()
    • isAuthenticData

      public boolean isAuthenticData()
    • getUnverifiedReasons

      public 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, try getAnswers() instead.
      Returns:
      the raw answer DNS Message.
      See Also:
    • getDnsQueryResult

      public org.minidns.dnsqueryresult.DnsQueryResult getDnsQueryResult()
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • throwIseIfErrorResponse

      protected void throwIseIfErrorResponse()