public class SetResponse
extends java.lang.Object
Cache.lookupRecords(Name, int, int)
or Zone.findRecords(Name, int)
.Modifier and Type | Field and Description |
---|---|
private java.util.List<RRset> |
data |
private boolean |
isAuthenticated |
private static SetResponse |
SR_NXDOMAIN |
private static SetResponse |
SR_NXDOMAIN_AUTH |
private static SetResponse |
SR_NXRRSET |
private static SetResponse |
SR_NXRRSET_AUTH |
private static SetResponse |
SR_UNKNOWN |
private static SetResponse |
SR_UNKNOWN_AUTH |
private SetResponseType |
type |
Modifier | Constructor and Description |
---|---|
private |
SetResponse(SetResponseType type,
RRset rrset,
boolean isAuthenticated) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addRRset(RRset rrset) |
java.util.List<RRset> |
answers()
If the query was successful, return the answers
|
CNAMERecord |
getCNAME()
If the query encountered a CNAME, return it.
|
DNAMERecord |
getDNAME()
If the query encountered a DNAME, return it.
|
RRset |
getNS()
If the query hit a delegation point, return the NS set.
|
boolean |
isCNAME()
Is the result of the lookup a CNAME?
|
boolean |
isDelegation()
Is the result of the lookup that the name is below a delegation?
|
boolean |
isDNAME()
Is the result of the lookup a DNAME?
|
boolean |
isNXDOMAIN()
Is the answer to the query that the name does not exist?
|
boolean |
isNXRRSET()
Is the answer to the query that the name exists, but the type does not?
|
boolean |
isSuccessful()
Was the query successful?
|
boolean |
isUnknown()
Is the answer to the query unknown?
|
(package private) static SetResponse |
ofType(SetResponseType type) |
(package private) static SetResponse |
ofType(SetResponseType type,
Cache.CacheRRset rrset) |
(package private) static SetResponse |
ofType(SetResponseType type,
RRset rrset) |
(package private) static SetResponse |
ofType(SetResponseType type,
RRset rrset,
boolean isAuthenticated) |
java.lang.String |
toString()
Prints the value of the SetResponse
|
private static final SetResponse SR_UNKNOWN
private static final SetResponse SR_UNKNOWN_AUTH
private static final SetResponse SR_NXDOMAIN
private static final SetResponse SR_NXDOMAIN_AUTH
private static final SetResponse SR_NXRRSET
private static final SetResponse SR_NXRRSET_AUTH
private final SetResponseType type
private boolean isAuthenticated
private java.util.List<RRset> data
private SetResponse(SetResponseType type, RRset rrset, boolean isAuthenticated)
static SetResponse ofType(SetResponseType type)
static SetResponse ofType(SetResponseType type, RRset rrset)
static SetResponse ofType(SetResponseType type, Cache.CacheRRset rrset)
static SetResponse ofType(SetResponseType type, RRset rrset, boolean isAuthenticated)
void addRRset(RRset rrset)
public boolean isUnknown()
public boolean isNXDOMAIN()
public boolean isNXRRSET()
public boolean isDelegation()
public boolean isCNAME()
public boolean isDNAME()
public boolean isSuccessful()
public java.util.List<RRset> answers()
public CNAMERecord getCNAME()
public DNAMERecord getDNAME()
public RRset getNS()
public java.lang.String toString()
toString
in class java.lang.Object