DefaultDnsResponse Class — netty Architecture
Architecture documentation for the DefaultDnsResponse class in DefaultDnsResponse.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9f857f29_b8b0_7da4_0e1d_cf79cabf371d["DefaultDnsResponse"] 114d2ba3_0d75_5970_d15a_abc7048d2877["DefaultDnsResponse.java"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|defined in| 114d2ba3_0d75_5970_d15a_abc7048d2877 fd9bd7a7_0cca_33ee_50d3_9c9714aae05c["DefaultDnsResponse()"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|method| fd9bd7a7_0cca_33ee_50d3_9c9714aae05c 1c7caadb_f7fc_506e_38f3_422949eb0c83["isAuthoritativeAnswer()"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|method| 1c7caadb_f7fc_506e_38f3_422949eb0c83 bbdbca42_672f_578b_ab95_7ff7241956e6["DnsResponse()"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|method| bbdbca42_672f_578b_ab95_7ff7241956e6 59b556cb_e0d6_f5b2_d0c0_8fbf27e49f15["isTruncated()"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|method| 59b556cb_e0d6_f5b2_d0c0_8fbf27e49f15 3bcea753_72e9_ca23_a79f_2b47a2fda07f["isRecursionAvailable()"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|method| 3bcea753_72e9_ca23_a79f_2b47a2fda07f 52fe3ebe_cbc3_a6b2_49ac_30c1e0eb7552["DnsResponseCode()"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|method| 52fe3ebe_cbc3_a6b2_49ac_30c1e0eb7552 0980d602_6f8e_fcfe_c39b_529c48c7bea7["String()"] 9f857f29_b8b0_7da4_0e1d_cf79cabf371d -->|method| 0980d602_6f8e_fcfe_c39b_529c48c7bea7
Relationship Graph
Source Code
codec-dns/src/main/java/io/netty/handler/codec/dns/DefaultDnsResponse.java lines 23–175
public class DefaultDnsResponse extends AbstractDnsMessage implements DnsResponse {
private boolean authoritativeAnswer;
private boolean truncated;
private boolean recursionAvailable;
private DnsResponseCode code;
/**
* Creates a new instance with the {@link DnsOpCode#QUERY} {@code opCode} and
* the {@link DnsResponseCode#NOERROR} {@code RCODE}.
*
* @param id the {@code ID} of the DNS response
*/
public DefaultDnsResponse(int id) {
this(id, DnsOpCode.QUERY, DnsResponseCode.NOERROR);
}
/**
* Creates a new instance with the {@link DnsResponseCode#NOERROR} {@code RCODE}.
*
* @param id the {@code ID} of the DNS response
* @param opCode the {@code opCode} of the DNS response
*/
public DefaultDnsResponse(int id, DnsOpCode opCode) {
this(id, opCode, DnsResponseCode.NOERROR);
}
/**
* Creates a new instance.
*
* @param id the {@code ID} of the DNS response
* @param opCode the {@code opCode} of the DNS response
* @param code the {@code RCODE} of the DNS response
*/
public DefaultDnsResponse(int id, DnsOpCode opCode, DnsResponseCode code) {
super(id, opCode);
setCode(code);
}
@Override
public boolean isAuthoritativeAnswer() {
return authoritativeAnswer;
}
@Override
public DnsResponse setAuthoritativeAnswer(boolean authoritativeAnswer) {
this.authoritativeAnswer = authoritativeAnswer;
return this;
}
@Override
public boolean isTruncated() {
return truncated;
}
@Override
public DnsResponse setTruncated(boolean truncated) {
this.truncated = truncated;
return this;
}
@Override
public boolean isRecursionAvailable() {
return recursionAvailable;
}
@Override
public DnsResponse setRecursionAvailable(boolean recursionAvailable) {
this.recursionAvailable = recursionAvailable;
return this;
}
@Override
public DnsResponseCode code() {
return code;
}
@Override
public DnsResponse setCode(DnsResponseCode code) {
this.code = checkNotNull(code, "code");
return this;
Source
Frequently Asked Questions
What is the DefaultDnsResponse class?
DefaultDnsResponse is a class in the netty codebase, defined in codec-dns/src/main/java/io/netty/handler/codec/dns/DefaultDnsResponse.java.
Where is DefaultDnsResponse defined?
DefaultDnsResponse is defined in codec-dns/src/main/java/io/netty/handler/codec/dns/DefaultDnsResponse.java at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free