GeezerVison is showing netty.io — DnsResponse (Netty API Reference (4.1.141.Final))
Interface DnsResponse
-
Method Summary
Modifier and Type
Method
Description
Adds the specified record at the specified index of the specified section
of this DNS message.
Adds the specified record at the end of the specified section of this DNS message.
Removes all the records in this DNS message.
Removes all the records in the specified section of this DNS message.
Returns the 4 bit return code.
boolean
Returns true if responding server is authoritative for the domain
name in the query message.
boolean
Returns true if DNS server can handle recursive queries.
boolean
Returns true if response has been truncated, usually if it is
over 512 bytes.
Increases the reference count by 1.
Increases the reference count by the specified increment.
Set to true if responding server is authoritative for the domain
name in the query message.
Sets the response code for this message.
Sets the ID of this DNS message.
Sets the opCode of this DNS message.
Sets the specified section of this DNS message to the specified record,
making it a single-record section.
Set to true if DNS server can handle recursive queries.
Sets the RD (recursion desired} field of this DNS message.
Set to true if response has been truncated (usually happens for
responses over 512 bytes).
Sets the Z (reserved for future use) field of this DNS message.
Records the current access location of this object for debugging purposes.
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
Methods inherited from interface DnsMessage
count, count, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, z
Modifier and Type
Method
Description
int
Returns the number of records in this DNS message.
int
Returns the number of records in the specified section of this DNS message.
int
Returns the ID of this DNS message.
boolean
Returns the RD (recursion desired} field of this DNS message.
Returns the opCode of this DNS message.
Returns the first record in the specified section of this DNS message.
Returns the record at the specified index of the specified section of this DNS message.
Removes the record at the specified index of the specified section from this DNS message.
Sets the specified record at the specified index of the specified section
of this DNS message.
int
Returns the Z (reserved for future use) field of this DNS message.
Methods inherited from interface ReferenceCounted
refCnt, release, release
Modifier and Type
Method
Description
int
Returns the reference count of this object.
boolean
Decreases the reference count by 1 and deallocates this object if the reference count reaches at
0.
boolean
Decreases the reference count by the specified decrement and deallocates this object if the reference
count reaches at 0.
-
Method Details
-
isAuthoritativeAnswer
boolean isAuthoritativeAnswer()
Returns true if responding server is authoritative for the domain
name in the query message.
-
setAuthoritativeAnswer
DnsResponse setAuthoritativeAnswer(boolean authoritativeAnswer)
Set to true if responding server is authoritative for the domain
name in the query message.
- Parameters:
authoritativeAnswer - flag for authoritative answer
-
isTruncated
boolean isTruncated()
Returns true if response has been truncated, usually if it is
over 512 bytes.
-
setTruncated
Set to true if response has been truncated (usually happens for
responses over 512 bytes).
- Parameters:
truncated - flag for truncation
-
isRecursionAvailable
boolean isRecursionAvailable()
Returns true if DNS server can handle recursive queries.
-
setRecursionAvailable
DnsResponse setRecursionAvailable(boolean recursionAvailable)
Set to true if DNS server can handle recursive queries.
- Parameters:
recursionAvailable - flag for recursion availability
-
code
Returns the 4 bit return code.
-
setCode
Sets the response code for this message.
- Parameters:
code - the response code
-
setId
Sets the ID of this DNS message.
- Specified by:
setId in interface DnsMessage
-
-
-
setZ
Sets the Z (reserved for future use) field of this DNS message.
- Specified by:
setZ in interface DnsMessage
-
setRecord
Sets the specified section of this DNS message to the specified record,
making it a single-record section. When the specified section is DnsSection.QUESTION,
the specified record must be a DnsQuestion.
- Specified by:
setRecord in interface DnsMessage
-
-
-
clear
Removes all the records in the specified section of this DNS message.
- Specified by:
clear in interface DnsMessage
-
clear
Removes all the records in this DNS message.
- Specified by:
clear in interface DnsMessage
-
touch
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 ResourceLeakDetector. This method is a shortcut to touch(null).
- Specified by:
touch in interface DnsMessage
- Specified by:
touch in interface ReferenceCounted
-
touch
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 ResourceLeakDetector.
- Specified by:
touch in interface DnsMessage
- Specified by:
touch in interface ReferenceCounted
-
-
|