DnsResponse implementation.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private DnsResponseCode | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | DefaultDnsResponse(int
the id)ID of the DNS responseCreates a new instance with the |
| public | DefaultDnsResponse(int
the id, DnsOpCode ID of the DNS responsethe opCode)opCode of the DNS responseCreates a new instance with the |
| public | DefaultDnsResponse(int
the id, DnsOpCode ID of the DNS responsethe opCode, DnsResponseCode opCode of the DNS responsethe code)RCODE of the DNS responseCreates a new instance. |
| authoritativeAnswer | back to summary |
|---|---|
| private boolean authoritativeAnswer | |
| code | back to summary |
|---|---|
| private DnsResponseCode code | |
| recursionAvailable | back to summary |
|---|---|
| private boolean recursionAvailable | |
| truncated | back to summary |
|---|---|
| private boolean truncated | |
| DefaultDnsResponse | back to summary |
|---|---|
| public DefaultDnsResponse(int id) Creates a new instance with the
| |
| DefaultDnsResponse | back to summary |
|---|---|
| public DefaultDnsResponse(int id, DnsOpCode opCode) Creates a new instance with the
| |
| DefaultDnsResponse | back to summary |
|---|---|
| public DefaultDnsResponse(int id, DnsOpCode opCode, DnsResponseCode code) Creates a new instance.
| |
| addRecord | back to summary |
|---|---|
| public DnsResponse addRecord(DnsSection section, DnsRecord record) Overrides io. Implements io. Doc from io. Adds the specified
| |
| addRecord | back to summary |
|---|---|
| public DnsResponse addRecord(DnsSection section, int index, DnsRecord record) Overrides io. Implements io. Doc from io. Adds the specified
| |
| clear | back to summary |
|---|---|
| public DnsResponse clear(DnsSection section) Overrides io. Implements io. Doc from io. Removes all the records in the specified
| |
| clear | back to summary |
|---|---|
| public DnsResponse clear() Overrides io. Implements io. Doc from io. Removes all the records in this DNS message.
| |
| code | back to summary |
|---|---|
| public DnsResponseCode code() Implements io. Doc from io. Returns the 4 bit return code.
| |
| isAuthoritativeAnswer | back to summary |
|---|---|
| public boolean isAuthoritativeAnswer() Implements io. Doc from io. Returns
| |
| isRecursionAvailable | back to summary |
|---|---|
| public boolean isRecursionAvailable() Implements io. Doc from io. Returns
| |
| isTruncated | back to summary |
|---|---|
| public boolean isTruncated() Implements io. Doc from io. Returns
| |
| retain | back to summary |
|---|---|
| public DnsResponse retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public DnsResponse retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| setAuthoritativeAnswer | back to summary |
|---|---|
| public DnsResponse setAuthoritativeAnswer(boolean authoritativeAnswer) Implements io. Doc from io. Set to
| |
| setCode | back to summary |
|---|---|
| public DnsResponse setCode(DnsResponseCode code) Implements io. Doc from io. Sets the response code for this message.
| |
| setId | back to summary |
|---|---|
| public DnsResponse setId(int id) Overrides io. Implements io. Doc from io. Sets the
| |
| setOpCode | back to summary |
|---|---|
| public DnsResponse setOpCode(DnsOpCode opCode) Overrides io. Implements io. Doc from io. Sets the
| |
| setRecord | back to summary |
|---|---|
| public DnsResponse setRecord(DnsSection section, DnsRecord record) Overrides io. Implements io. Doc from io. Sets the specified
| |
| setRecursionAvailable | back to summary |
|---|---|
| public DnsResponse setRecursionAvailable(boolean recursionAvailable) Implements io. Doc from io. Set to
| |
| setRecursionDesired | back to summary |
|---|---|
| public DnsResponse setRecursionDesired(boolean recursionDesired) Overrides io. Implements io. Doc from io. Sets the
| |
| setTruncated | back to summary |
|---|---|
| public DnsResponse setTruncated(boolean truncated) Implements io. Doc from io. Set to
| |
| setZ | back to summary |
|---|---|
| public DnsResponse setZ(int z) Overrides io. Implements io. Doc from io. Sets the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public DnsResponse touch() Overrides io. Implements io. Doc from io. Records the current access location of this object for debugging purposes.
If this object is determined to be leaked, the information recorded by this operation will be provided to you
via
| |
| touch | back to summary |
|---|---|
| public DnsResponse touch(Object hint) Overrides io. Implements io. Doc from io. Records the current access location of this object with an additional arbitrary information for debugging
purposes. If this object is determined to be leaked, the information recorded by this operation will be
provided to you via
| |