- java.lang.Object
-
- io.netty5.handler.codec.dns.AbstractDnsRecord
-
- io.netty5.handler.codec.dns.DefaultDnsQuestion
-
- All Implemented Interfaces:
DnsQuestion
,DnsRecord
@UnstableApi public class DefaultDnsQuestion extends AbstractDnsRecord implements DnsQuestion
The defaultDnsQuestion
implementation.
-
-
Field Summary
-
Fields inherited from interface io.netty5.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
-
Constructor Summary
Constructors Constructor Description DefaultDnsQuestion(String name, DnsRecordType type)
Creates a newIN-class
question.DefaultDnsQuestion(String name, DnsRecordType type, int dnsClass)
Creates a new question.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsQuestion
copy()
Returns a copy of this record object.String
toString()
-
Methods inherited from class io.netty5.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.netty5.handler.codec.dns.DnsQuestion
timeToLive
-
-
-
-
Constructor Detail
-
DefaultDnsQuestion
public DefaultDnsQuestion(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(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 String toString()
- Overrides:
toString
in classAbstractDnsRecord
-
copy
public DnsQuestion copy()
Description copied from interface:DnsRecord
Returns a copy of this record object. Immutable record objects may return themselves.- Specified by:
copy
in interfaceDnsQuestion
- Specified by:
copy
in interfaceDnsRecord
-
-