Class DnsQueryEncoder
java.lang.Object
io.netty.handler.codec.dns.DnsQueryEncoder
final class DnsQueryEncoder
extends java.lang.Object
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDnsQueryEncoder(DnsRecordEncoder recordEncoder) Creates a new encoder with the specifiedrecordEncoder. -
Method Summary
Modifier and TypeMethodDescription(package private) voidprivate static voidencodeHeader(DnsQuery query, ByteBuf buf) Encodes the header that is always 12 bytes long.private voidencodeQuestions(DnsQuery query, ByteBuf buf) private voidencodeRecords(DnsQuery query, DnsSection section, ByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
recordEncoder
-
-
Constructor Details
-
DnsQueryEncoder
DnsQueryEncoder(DnsRecordEncoder recordEncoder) Creates a new encoder with the specifiedrecordEncoder.
-
-
Method Details
-
encode
-
encodeHeader
-
encodeQuestions
-
encodeRecords
private void encodeRecords(DnsQuery query, DnsSection section, ByteBuf buf) throws java.lang.Exception - Throws:
java.lang.Exception
-