Package io.netty.handler.codec.dns
Interface DnsQuery
-
- All Superinterfaces:
DnsMessage,io.netty.util.ReferenceCounted
- All Known Implementing Classes:
DatagramDnsQuery,DefaultDnsQuery
public interface DnsQuery extends DnsMessage
A DNS query message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DnsQueryaddRecord(DnsSection section, int index, DnsRecord record)Adds the specifiedrecordat the specifiedindexof the specifiedsectionof this DNS message.DnsQueryaddRecord(DnsSection section, DnsRecord record)Adds the specifiedrecordat the end of the specifiedsectionof this DNS message.DnsQueryclear()Removes all the records in this DNS message.DnsQueryclear(DnsSection section)Removes all the records in the specifiedsectionof this DNS message.DnsQueryretain()DnsQueryretain(int increment)DnsQuerysetId(int id)Sets theIDof this DNS message.DnsQuerysetOpCode(DnsOpCode opCode)Sets theopCodeof this DNS message.DnsQuerysetRecord(DnsSection section, DnsRecord record)Sets the specifiedsectionof this DNS message to the specifiedrecord, making it a single-record section.DnsQuerysetRecursionDesired(boolean recursionDesired)Sets theRD(recursion desired} field of this DNS message.DnsQuerysetZ(int z)Sets theZ(reserved for future use) field of this DNS message.DnsQuerytouch()DnsQuerytouch(Object hint)-
Methods inherited from interface io.netty.handler.codec.dns.DnsMessage
count, count, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, z
-
-
-
-
Method Detail
-
setId
DnsQuery setId(int id)
Description copied from interface:DnsMessageSets theIDof this DNS message.- Specified by:
setIdin interfaceDnsMessage
-
setOpCode
DnsQuery setOpCode(DnsOpCode opCode)
Description copied from interface:DnsMessageSets theopCodeof this DNS message.- Specified by:
setOpCodein interfaceDnsMessage
-
setRecursionDesired
DnsQuery setRecursionDesired(boolean recursionDesired)
Description copied from interface:DnsMessageSets theRD(recursion desired} field of this DNS message.- Specified by:
setRecursionDesiredin interfaceDnsMessage
-
setZ
DnsQuery setZ(int z)
Description copied from interface:DnsMessageSets theZ(reserved for future use) field of this DNS message.- Specified by:
setZin interfaceDnsMessage
-
setRecord
DnsQuery setRecord(DnsSection section, DnsRecord record)
Description copied from interface:DnsMessageSets the specifiedsectionof this DNS message to the specifiedrecord, making it a single-record section. When the specifiedsectionisDnsSection.QUESTION, the specifiedrecordmust be aDnsQuestion.- Specified by:
setRecordin interfaceDnsMessage
-
addRecord
DnsQuery addRecord(DnsSection section, DnsRecord record)
Description copied from interface:DnsMessageAdds the specifiedrecordat the end of the specifiedsectionof this DNS message. When the specifiedsectionisDnsSection.QUESTION, the specifiedrecordmust be aDnsQuestion.- Specified by:
addRecordin interfaceDnsMessage
-
addRecord
DnsQuery addRecord(DnsSection section, int index, DnsRecord record)
Description copied from interface:DnsMessageAdds the specifiedrecordat the specifiedindexof the specifiedsectionof this DNS message. When the specifiedsectionisDnsSection.QUESTION, the specifiedrecordmust be aDnsQuestion.- Specified by:
addRecordin interfaceDnsMessage
-
clear
DnsQuery clear(DnsSection section)
Description copied from interface:DnsMessageRemoves all the records in the specifiedsectionof this DNS message.- Specified by:
clearin interfaceDnsMessage
-
clear
DnsQuery clear()
Description copied from interface:DnsMessageRemoves all the records in this DNS message.- Specified by:
clearin interfaceDnsMessage
-
touch
DnsQuery touch()
- Specified by:
touchin interfaceDnsMessage- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
DnsQuery touch(Object hint)
- Specified by:
touchin interfaceDnsMessage- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
retain
DnsQuery retain()
- Specified by:
retainin interfaceDnsMessage- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
DnsQuery retain(int increment)
- Specified by:
retainin interfaceDnsMessage- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
-