Package org.xbill.DNS

Class SetResponse

java.lang.Object
org.xbill.DNS.SetResponse

public class SetResponse extends Object
See Also:
  • Field Details

    • SR_UNKNOWN

      private static final SetResponse SR_UNKNOWN
    • SR_UNKNOWN_AUTH

      private static final SetResponse SR_UNKNOWN_AUTH
    • SR_NXDOMAIN

      private static final SetResponse SR_NXDOMAIN
    • SR_NXDOMAIN_AUTH

      private static final SetResponse SR_NXDOMAIN_AUTH
    • SR_NXRRSET

      private static final SetResponse SR_NXRRSET
    • SR_NXRRSET_AUTH

      private static final SetResponse SR_NXRRSET_AUTH
    • type

      private final SetResponseType type
    • isAuthenticated

      private boolean isAuthenticated
    • data

      private List<RRset> data
  • Constructor Details

  • Method Details

    • ofType

      static SetResponse ofType(SetResponseType type)
    • ofType

      static SetResponse ofType(SetResponseType type, RRset rrset)
    • ofType

      static SetResponse ofType(SetResponseType type, Cache.CacheRRset rrset)
    • ofType

      static SetResponse ofType(SetResponseType type, RRset rrset, boolean isAuthenticated)
    • addRRset

      void addRRset(RRset rrset)
    • isUnknown

      public boolean isUnknown()
      Is the answer to the query unknown?
    • isNXDOMAIN

      public boolean isNXDOMAIN()
      Is the answer to the query that the name does not exist?
    • isNXRRSET

      public boolean isNXRRSET()
      Is the answer to the query that the name exists, but the type does not?
    • isDelegation

      public boolean isDelegation()
      Is the result of the lookup that the name is below a delegation?
    • isCNAME

      public boolean isCNAME()
      Is the result of the lookup a CNAME?
    • isDNAME

      public boolean isDNAME()
      Is the result of the lookup a DNAME?
    • isSuccessful

      public boolean isSuccessful()
      Was the query successful?
    • answers

      public List<RRset> answers()
      If the query was successful, return the answers
    • getCNAME

      public CNAMERecord getCNAME()
      If the query encountered a CNAME, return it.
    • getDNAME

      public DNAMERecord getDNAME()
      If the query encountered a DNAME, return it.
    • getNS

      public RRset getNS()
      If the query hit a delegation point, return the NS set.
    • toString

      public String toString()
      Prints the value of the SetResponse
      Overrides:
      toString in class Object