@UnstableApi public interface DnsQuery extends DnsMessage
Modifier and Type | Method and Description |
---|---|
DnsQuery |
addRecord(DnsSection section,
DnsRecord record)
Adds the specified
record at the end of the specified section of this DNS message. |
DnsQuery |
addRecord(DnsSection section,
int index,
DnsRecord record)
Adds the specified
record at the specified index of the specified section
of this DNS message. |
DnsQuery |
clear()
Removes all the records in this DNS message.
|
DnsQuery |
clear(DnsSection section)
Removes all the records in the specified
section of this DNS message. |
DnsQuery |
retain() |
DnsQuery |
retain(int increment) |
DnsQuery |
setId(int id)
Sets the
ID of this DNS message. |
DnsQuery |
setOpCode(DnsOpCode opCode)
Sets the
opCode of this DNS message. |
DnsQuery |
setRecord(DnsSection section,
DnsRecord record)
Sets the specified
section of this DNS message to the specified record ,
making it a single-record section. |
DnsQuery |
setRecursionDesired(boolean recursionDesired)
Sets the
RD (recursion desired} field of this DNS message. |
DnsQuery |
setZ(int z)
Sets the
Z (reserved for future use) field of this DNS message. |
DnsQuery |
touch() |
DnsQuery |
touch(Object hint) |
count, count, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, z
DnsQuery setId(int id)
DnsMessage
ID
of this DNS message.setId
in interface DnsMessage
DnsQuery setOpCode(DnsOpCode opCode)
DnsMessage
opCode
of this DNS message.setOpCode
in interface DnsMessage
DnsQuery setRecursionDesired(boolean recursionDesired)
DnsMessage
RD
(recursion desired} field of this DNS message.setRecursionDesired
in interface DnsMessage
DnsQuery setZ(int z)
DnsMessage
Z
(reserved for future use) field of this DNS message.setZ
in interface DnsMessage
DnsQuery setRecord(DnsSection section, DnsRecord record)
DnsMessage
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
.setRecord
in interface DnsMessage
DnsQuery addRecord(DnsSection section, DnsRecord record)
DnsMessage
record
at the end of the specified section
of this DNS message.
When the specified section
is DnsSection.QUESTION
, the specified record
must be a DnsQuestion
.addRecord
in interface DnsMessage
DnsQuery addRecord(DnsSection section, int index, DnsRecord record)
DnsMessage
record
at the specified index
of the specified section
of this DNS message. When the specified section
is DnsSection.QUESTION
, the specified
record
must be a DnsQuestion
.addRecord
in interface DnsMessage
DnsQuery clear(DnsSection section)
DnsMessage
section
of this DNS message.clear
in interface DnsMessage
DnsQuery clear()
DnsMessage
clear
in interface DnsMessage
DnsQuery touch()
touch
in interface DnsMessage
touch
in interface io.netty.util.ReferenceCounted
DnsQuery touch(Object hint)
touch
in interface DnsMessage
touch
in interface io.netty.util.ReferenceCounted
DnsQuery retain()
retain
in interface DnsMessage
retain
in interface io.netty.util.ReferenceCounted
DnsQuery retain(int increment)
retain
in interface DnsMessage
retain
in interface io.netty.util.ReferenceCounted
Copyright © 2008–2018 The Netty Project. All rights reserved.