Package org.xbill.DNS
Class SetResponse
java.lang.Object
org.xbill.DNS.SetResponse
The Response from a query to
Cache.lookupRecords(Name, int, int) or Zone.findRecords(Name, int).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final SetResponseprivate static final SetResponseprivate static final SetResponseprivate static final SetResponseprivate static final SetResponseprivate static final SetResponseprivate final SetResponseType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSetResponse(SetResponseType type, RRset rrset, boolean isAuthenticated) -
Method Summary
Modifier and TypeMethodDescription(package private) voidanswers()If the query was successful, return the answersgetCNAME()If the query encountered a CNAME, return it.getDNAME()If the query encountered a DNAME, return it.getNS()If the query hit a delegation point, return the NS set.booleanisCNAME()Is the result of the lookup a CNAME?booleanIs the result of the lookup that the name is below a delegation?booleanisDNAME()Is the result of the lookup a DNAME?booleanIs the answer to the query that the name does not exist?booleanIs the answer to the query that the name exists, but the type does not?booleanWas the query successful?booleanIs the answer to the query unknown?(package private) static SetResponseofType(SetResponseType type) (package private) static SetResponseofType(SetResponseType type, Cache.CacheRRset rrset) (package private) static SetResponseofType(SetResponseType type, RRset rrset) (package private) static SetResponseofType(SetResponseType type, RRset rrset, boolean isAuthenticated) toString()Prints the value of the SetResponse
-
Field Details
-
SR_UNKNOWN
-
SR_UNKNOWN_AUTH
-
SR_NXDOMAIN
-
SR_NXDOMAIN_AUTH
-
SR_NXRRSET
-
SR_NXRRSET_AUTH
-
type
-
isAuthenticated
private boolean isAuthenticated -
data
-
-
Constructor Details
-
SetResponse
-
-
Method Details
-
ofType
-
ofType
-
ofType
-
ofType
-
addRRset
-
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
If the query was successful, return the answers -
getCNAME
If the query encountered a CNAME, return it. -
getDNAME
If the query encountered a DNAME, return it. -
getNS
If the query hit a delegation point, return the NS set. -
toString
Prints the value of the SetResponse
-