Package io.netty.handler.codec.dns
Class DefaultDnsQuestion
java.lang.Object
io.netty.handler.codec.dns.AbstractDnsRecord
io.netty.handler.codec.dns.DefaultDnsQuestion
- All Implemented Interfaces:
DnsQuestion
,DnsRecord
The default
DnsQuestion
implementation.-
Field Summary
Fields inherited from interface io.netty.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDnsQuestion
(String name, DnsRecordType type) Creates a newIN-class
question.DefaultDnsQuestion
(String name, DnsRecordType type, int dnsClass) Creates a new question. -
Method Summary
Methods inherited from class io.netty.handler.codec.dns.AbstractDnsRecord
dnsClass, equals, hashCode, name, timeToLive, type
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.handler.codec.dns.DnsQuestion
timeToLive
-
Constructor Details
-
DefaultDnsQuestion
Creates a newIN-class
question.- Parameters:
name
- the domain name of the DNS questiontype
- the type of the DNS question
-
DefaultDnsQuestion
Creates a new question.- Parameters:
name
- the domain name of the DNS questiontype
- the type of the DNS questiondnsClass
- the class of the record, usually one of the following:
-
-
Method Details
-
toString
- Overrides:
toString
in classAbstractDnsRecord
-