org.xbill.DNS
Class SetResponse

java.lang.Object
  |
  +--org.xbill.DNS.SetResponse

public class SetResponse
extends Object

The Response from a query to Cache.lookupRecords() or Zone.findRecords()

See Also:
Cache, Zone

Method Summary
 RRset[] answers()
          If the query was successful, return the answers
 Vector backtrace()
          If the query involved CNAME traversals, return a Vector containing all CNAMERecords traversed.
 boolean isNegative()
          Is the answer to the query conclusively negative?
 boolean isNODATA()
          Is the answer to the query that the data does not exist?
 boolean isNXDOMAIN()
          Is the answer to the query that the name does not exist?
 boolean isPartial()
          Did the query partially succeed?
 boolean isSuccessful()
          Was the query successful?
 boolean isUnknown()
          Is the answer to the query unknown?
 CNAMERecord partial()
          If the query was partially successful, return the last CNAME found in the lookup process.
 String toString()
          Prints the value of the CacheResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isUnknown

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

isNegative

public boolean isNegative()
Is the answer to the query conclusively negative?

isNXDOMAIN

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

isNODATA

public boolean isNODATA()
Is the answer to the query that the data does not exist?

isPartial

public boolean isPartial()
Did the query partially succeed?

isSuccessful

public boolean isSuccessful()
Was the query successful?

answers

public RRset[] answers()
If the query was successful, return the answers

partial

public CNAMERecord partial()
If the query was partially successful, return the last CNAME found in the lookup process.

backtrace

public Vector backtrace()
If the query involved CNAME traversals, return a Vector containing all CNAMERecords traversed.

toString

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