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

public Class DefaultDnsQuestion

extends AbstractDnsRecord
implements DnsQuestion
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.dns.DnsQuestion, io.netty.handler.codec.dns.DnsRecord
Annotations
@UnstableApi
Imports
io.netty.util.internal.StringUtil, .UnstableApi

The default DnsQuestion implementation.

Constructor Summary

AccessConstructor and Description
public
DefaultDnsQuestion(String
the domain name of the DNS question
name
,
DnsRecordType
the type of the DNS question
type
)

Creates a new IN-class question.

public
DefaultDnsQuestion(String
the domain name of the DNS question
name
,
DnsRecordType
the type of the DNS question
type
,
int
the class of the record, usually one of the following:
dnsClass
)

Creates a new question.

Method Summary

Modifier and TypeMethod and Description
public String
toString()

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

Returns a string representation of the object.
Inherited from io.netty.handler.codec.dns.AbstractDnsRecord:
dnsClassequalshashCodenametimeToLivetype

Constructor Detail

DefaultDnsQuestionback to summary
public DefaultDnsQuestion(String name, DnsRecordType type)

Creates a new IN-class question.

Parameters
name:String

the domain name of the DNS question

type:DnsRecordType

the type of the DNS question

DefaultDnsQuestionback to summary
public DefaultDnsQuestion(String name, DnsRecordType type, int dnsClass)

Creates a new question.

Parameters
name:String

the domain name of the DNS question

type:DnsRecordType

the type of the DNS question

dnsClass:int

the class of the record, usually one of the following:

Method Detail

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