- java.lang.Object
-
- io.netty5.handler.codec.dns.AbstractDnsRecord
-
- io.netty5.handler.codec.dns.AbstractDnsOptPseudoRrRecord
-
- All Implemented Interfaces:
DnsOptPseudoRecord
,DnsRecord
- Direct Known Subclasses:
DefaultDnsOptEcsRecord
@UnstableApi public abstract class AbstractDnsOptPseudoRrRecord extends AbstractDnsRecord implements DnsOptPseudoRecord
An OPT RR record. This is used for Extension Mechanisms for DNS (EDNS(0)).
-
-
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 Modifier Constructor Description protected
AbstractDnsOptPseudoRrRecord(int maxPayloadSize)
protected
AbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
extendedRcode()
Returns theEXTENDED-RCODE
which is encoded intoDnsRecord.timeToLive()
.int
flags()
String
toString()
int
version()
Returns theVERSION
which is encoded intoDnsRecord.timeToLive()
.-
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.DnsOptPseudoRecord
copy
-
Methods inherited from interface io.netty5.handler.codec.dns.DnsRecord
dnsClass, name, timeToLive, type
-
-
-
-
Method Detail
-
extendedRcode
public int extendedRcode()
Description copied from interface:DnsOptPseudoRecord
Returns theEXTENDED-RCODE
which is encoded intoDnsRecord.timeToLive()
.- Specified by:
extendedRcode
in interfaceDnsOptPseudoRecord
-
version
public int version()
Description copied from interface:DnsOptPseudoRecord
Returns theVERSION
which is encoded intoDnsRecord.timeToLive()
.- Specified by:
version
in interfaceDnsOptPseudoRecord
-
flags
public int flags()
Description copied from interface:DnsOptPseudoRecord
- Specified by:
flags
in interfaceDnsOptPseudoRecord
-
toString
public String toString()
- Overrides:
toString
in classAbstractDnsRecord
-
-