Top Description Constructors Methods
io.netty.handler.codec.dns

public abstract Class AbstractDnsOptPseudoRrRecord

extends AbstractDnsRecord
implements DnsOptPseudoRecord
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.dns.DnsOptPseudoRecord, io.netty.handler.codec.dns.DnsRecord
Known Direct Subclasses
io.netty.handler.codec.dns.DefaultDnsOptEcsRecord
Annotations
@UnstableApi
Imports
io.netty.util.internal.StringUtil, .UnstableApi

An OPT RR record. This is used for Extension Mechanisms for DNS (EDNS(0)).

Constructor Summary

AccessConstructor and Description
protected
AbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version)

protected
AbstractDnsOptPseudoRrRecord(int maxPayloadSize)

Method Summary

Modifier and TypeMethod and Description
public int
public int
flags()

Implements io.netty.handler.codec.dns.DnsOptPseudoRecord.flags.

Returns the flags which includes DO and Z which is encoded into DnsOptPseudoRecord#timeToLive().
private static long
packIntoLong(int val, int val2)

public String
toString()

Overrides io.netty.handler.codec.dns.AbstractDnsRecord.toString.

Returns a string representation of the object.
pack-priv final StringBuilder
public int
Inherited from io.netty.handler.codec.dns.AbstractDnsRecord:
dnsClassequalshashCodenametimeToLivetype

Constructor Detail

AbstractDnsOptPseudoRrRecordback to summary
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize, int extendedRcode, int version)
AbstractDnsOptPseudoRrRecordback to summary
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize)

Method Detail

extendedRcodeback to summary
public int extendedRcode()

Implements io.netty.handler.codec.dns.DnsOptPseudoRecord.extendedRcode.

Doc from io.netty.handler.codec.dns.DnsOptPseudoRecord.extendedRcode.

Returns the EXTENDED-RCODE which is encoded into DnsOptPseudoRecord#timeToLive().

Annotations
@Override
flagsback to summary
public int flags()

Implements io.netty.handler.codec.dns.DnsOptPseudoRecord.flags.

Doc from io.netty.handler.codec.dns.DnsOptPseudoRecord.flags.

Returns the flags which includes DO and Z which is encoded into DnsOptPseudoRecord#timeToLive().

Annotations
@Override
packIntoLongback to summary
private static long packIntoLong(int val, int val2)
toStringback to summary
public String toString()

Overrides io.netty.handler.codec.dns.AbstractDnsRecord.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
toStringBuilderback to summary
pack-priv final StringBuilder toStringBuilder()
versionback to summary
public int version()

Implements io.netty.handler.codec.dns.DnsOptPseudoRecord.version.

Doc from io.netty.handler.codec.dns.DnsOptPseudoRecord.version.

Returns the VERSION which is encoded into DnsOptPseudoRecord#timeToLive().

Annotations
@Override