public class SetResponse
extends java.lang.Object
Cache.lookupRecords(Name, int, int)
or Zone.findRecords(Name, int)
.Modifier and Type | Field and Description |
---|---|
(package private) static int |
CNAME
The Cache/Zone found a CNAME when looking for the name.
|
private java.util.List<RRset> |
data |
(package private) static int |
DELEGATION
A delegation enclosing the requested name was found.
|
(package private) static int |
DNAME
The Cache/Zone found a DNAME when looking for the name.
|
private static SetResponse |
nxdomain |
(package private) static int |
NXDOMAIN
The Zone does not contain the requested name, or the Cache has determined that the name does
not exist.
|
private static SetResponse |
nxrrset |
(package private) static int |
NXRRSET
The Zone contains the name, but no data of the requested type, or the Cache has determined that
the name exists and has no data of the requested type.
|
(package private) static int |
SUCCESSFUL
The Cache/Zone has successfully answered the question for the requested name/type/class.
|
private int |
type |
private static SetResponse |
unknown |
(package private) static int |
UNKNOWN
The Cache contains no information about the requested name/type
|
Modifier | Constructor and Description |
---|---|
private |
SetResponse() |
(package private) |
SetResponse(int type) |
(package private) |
SetResponse(int type,
RRset rrset) |
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(int type) |
java.lang.String |
toString()
Prints the value of the SetResponse
|
static final int UNKNOWN
static final int NXDOMAIN
static final int NXRRSET
static final int DELEGATION
static final int CNAME
CNAMERecord
,
Constant Field Valuesstatic final int DNAME
DNAMERecord
,
Constant Field Valuesstatic final int SUCCESSFUL
private static final SetResponse unknown
private static final SetResponse nxdomain
private static final SetResponse nxrrset
private int type
private java.util.List<RRset> data
private SetResponse()
SetResponse(int type, RRset rrset)
SetResponse(int type)
static SetResponse ofType(int type)
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