| Modifier and Type | Field and Description |
|---|---|
static int |
CNAME
The Cache/Zone found a CNAME when looking for the name.
|
static int |
DELEGATION
A delegation enclosing the requested name was found.
|
static int |
DNAME
The Cache/Zone found a DNAME when looking for the name.
|
static int |
NXDOMAIN
The Zone does not contain the requested name, or the Cache has determined
that the name does not exist.
|
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.
|
static int |
SUCCESSFUL
The Cache/Zone has successfully answered the question for the requested
name/type/class.
|
int |
type |
| Constructor and Description |
|---|
SetResponse(int type) |
SetResponse(int type,
RRset rrset) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRRset(RRset rrset) |
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?
|
static SetResponse |
ofType(int type) |
String |
toString()
Prints the value of the SetResponse
|
public static final int NXDOMAIN
public static final int NXRRSET
public static final int DELEGATION
public static final int CNAME
CNAMERecord,
Constant Field Valuespublic static final int DNAME
DNAMERecord,
Constant Field Valuespublic static final int SUCCESSFUL
public int type
public SetResponse(int type,
RRset rrset)
public SetResponse(int type)
public static SetResponse ofType(int type)
public 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 RRset[] answers()
public CNAMERecord getCNAME()
public DNAMERecord getDNAME()
public RRset getNS()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.