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

public Class DefaultDnsPtrRecord

extends AbstractDnsRecord
implements DnsPtrRecord
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.dns.DnsPtrRecord, io.netty.handler.codec.dns.DnsRecord
Annotations
@UnstableApi
Static Imports
io.netty.util.internal.ObjectUtil.checkNotNull

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
DefaultDnsPtrRecord(String
the domain name
name
,
int
the class of the record, usually one of the following:
dnsClass
,
long
the TTL value of the record
timeToLive
,
String
the hostname this PTR record resolves to.
hostname
)

Creates a new PTR record.

Method Summary

Modifier and TypeMethod and Description
public String
hostname()

Implements io.netty.handler.codec.dns.DnsPtrRecord.hostname.

Returns the hostname this PTR record resolves to.
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

Field Detail

hostnameback to summary
private final String hostname

Constructor Detail

DefaultDnsPtrRecordback to summary
public DefaultDnsPtrRecord(String name, int dnsClass, long timeToLive, String hostname)

Creates a new PTR record.

Parameters
name:String

the domain name

dnsClass:int

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

timeToLive:long

the TTL value of the record

hostname:String

the hostname this PTR record resolves to.

Method Detail

hostnameback to summary
public String hostname()

Implements io.netty.handler.codec.dns.DnsPtrRecord.hostname.

Doc from io.netty.handler.codec.dns.DnsPtrRecord.hostname.

Returns the hostname this PTR record resolves to.

Annotations
@Override
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