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
@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.netty.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractDnsOptPseudoRrRecord
(int maxPayloadSize) protected
AbstractDnsOptPseudoRrRecord
(int maxPayloadSize, int extendedRcode, int version) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns theEXTENDED-RCODE
which is encoded intoDnsRecord.timeToLive()
.int
flags()
private static long
packIntoLong
(int val, int val2) toString()
(package private) final StringBuilder
int
version()
Returns theVERSION
which 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 Details
-
AbstractDnsOptPseudoRrRecord
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version) -
AbstractDnsOptPseudoRrRecord
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize)
-
-
Method Details
-
packIntoLong
private static long packIntoLong(int val, int val2) -
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
- Overrides:
toString
in classAbstractDnsRecord
-
toStringBuilder
-