@UnstableApi public class DefaultDnsQuestion extends AbstractDnsRecord implements DnsQuestion
DnsQuestion
实现。
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
Constructor and Description |
---|
DefaultDnsQuestion(java.lang.String name, DnsRecordType type)
创建一个新的
IN-class 问题。
|
DefaultDnsQuestion(java.lang.String name, DnsRecordType type, int dnsClass)
创建一个新问题。
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
dnsClass, equals, hashCode, name, timeToLive, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
timeToLive
public DefaultDnsQuestion(java.lang.String name, DnsRecordType type)
IN-class
问题。
name
- DNS问题的域名
type
- DNS问题的类型
public DefaultDnsQuestion(java.lang.String name, DnsRecordType type, int dnsClass)
name
- DNS问题的域名
type
- DNS问题的类型
dnsClass
- 记录类,通常为以下之一:
public java.lang.String toString()
toString
,课时
AbstractDnsRecord
Copyright © 2008–2018 The Netty Project. All rights reserved.