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
public class DefaultDnsQuestion extends AbstractDnsRecord implements DnsQuestion
The defaultDnsQuestion
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
Constructors Constructor Description DefaultDnsQuestion(java.lang.String name, DnsRecordType type)
Creates a newIN-class
question.DefaultDnsQuestion(java.lang.String name, DnsRecordType type, int dnsClass)
Creates a new question.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
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 Detail
-
DefaultDnsQuestion
public DefaultDnsQuestion(java.lang.String name, DnsRecordType type)
Creates a newIN-class
question.- Parameters:
name
- the domain name of the DNS questiontype
- the type of the DNS question
-
DefaultDnsQuestion
public DefaultDnsQuestion(java.lang.String name, DnsRecordType type, int dnsClass)
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 Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractDnsRecord
-
-