Package io.netty.handler.codec.dns
Class AbstractDnsOptPseudoRrRecord
- java.lang.Object
-
- io.netty.handler.codec.dns.AbstractDnsRecord
-
- io.netty.handler.codec.dns.AbstractDnsOptPseudoRrRecord
-
- All Implemented Interfaces:
DnsOptPseudoRecord,DnsRecord
- Direct Known Subclasses:
DefaultDnsOptEcsRecord
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.netty.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDnsOptPseudoRrRecord(int maxPayloadSize)protectedAbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version)protectedAbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version, int flags)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intextendedRcode()Returns theEXTENDED-RCODEwhich is encoded intoDnsRecord.timeToLive().intflags()Returns the 16-bitflagsfield which is encoded into the lower 16 bits ofDnsRecord.timeToLive(), as laid out by RFC 6891.StringtoString()intversion()Returns theVERSIONwhich is encoded intoDnsRecord.timeToLive().-
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.DnsRecord
dnsClass, name, timeToLive, type
-
-
-
-
Constructor Detail
-
AbstractDnsOptPseudoRrRecord
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version)
-
AbstractDnsOptPseudoRrRecord
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version, int flags)Creates a new instance.- Parameters:
maxPayloadSize- the maximum UDP payload size that can be reassembled and delivered by this endpoint's network stack, encoded into theCLASSfieldextendedRcode- the upper 8 bits of the extended 12-bit RCODE; the lower 4 bits are carried by the DNS message headerversion- the EDNS versionflags- the 16-bit flags field, which holdsDOandZ; only its low 16 bits are used
-
AbstractDnsOptPseudoRrRecord
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize)
-
-
Method Detail
-
extendedRcode
public int extendedRcode()
Description copied from interface:DnsOptPseudoRecordReturns theEXTENDED-RCODEwhich is encoded intoDnsRecord.timeToLive().- Specified by:
extendedRcodein interfaceDnsOptPseudoRecord
-
version
public int version()
Description copied from interface:DnsOptPseudoRecordReturns theVERSIONwhich is encoded intoDnsRecord.timeToLive().- Specified by:
versionin interfaceDnsOptPseudoRecord
-
flags
public int flags()
Description copied from interface:DnsOptPseudoRecordReturns the 16-bitflagsfield which is encoded into the lower 16 bits ofDnsRecord.timeToLive(), as laid out by RFC 6891.DO, defined by RFC 3225, is the most significant bit of that field, so(flags() & 0x8000) != 0tests forDNSSEC OK. Further bits are assigned by the IANAEDNS Header Flagsregistry; the remaining bits areZ, which senders set to zero and receivers ignore.- Specified by:
flagsin interfaceDnsOptPseudoRecord
-
toString
public String toString()
- Overrides:
toStringin classAbstractDnsRecord
-
-