@UnstableApi public class DefaultDnsQuery extends AbstractDnsMessage implements DnsQuery
DnsQuery
implementation.构造器和说明 |
---|
DefaultDnsQuery(int id)
Creates a new instance with the
DnsOpCode.QUERY opCode . |
DefaultDnsQuery(int id,
DnsOpCode opCode)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
DnsQuery |
addRecord(DnsSection section,
DnsRecord record)
Adds the specified
record at the end of the specified section of this DNS message. |
DnsQuery |
addRecord(DnsSection section,
int index,
DnsRecord record)
Adds the specified
record at the specified index of the specified section
of this DNS message. |
DnsQuery |
clear()
Removes all the records in this DNS message.
|
DnsQuery |
clear(DnsSection section)
Removes all the records in the specified
section of this DNS message. |
DnsQuery |
retain()
Increases the reference count by
1 . |
DnsQuery |
retain(int increment)
Increases the reference count by the specified
increment . |
DnsQuery |
setId(int id)
Sets the
ID of this DNS message. |
DnsQuery |
setOpCode(DnsOpCode opCode)
Sets the
opCode of this DNS message. |
DnsQuery |
setRecord(DnsSection section,
DnsRecord record)
Sets the specified
section of this DNS message to the specified record ,
making it a single-record section. |
DnsQuery |
setRecursionDesired(boolean recursionDesired)
Sets the
RD (recursion desired} field of this DNS message. |
DnsQuery |
setZ(int z)
Sets the
Z (reserved for future use) field of this DNS message. |
java.lang.String |
toString() |
DnsQuery |
touch()
Records the current access location of this object for debugging purposes.
|
DnsQuery |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
count, count, deallocate, equals, hashCode, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, z
refCnt, release, release, setRefCnt
count, count, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, z
refCnt, release, release
public DefaultDnsQuery(int id)
DnsOpCode.QUERY
opCode
.id
- the ID
of the DNS querypublic DefaultDnsQuery(int id, DnsOpCode opCode)
id
- the ID
of the DNS queryopCode
- the opCode
of the DNS querypublic DnsQuery setId(int id)
DnsMessage
ID
of this DNS message.setId
在接口中 DnsMessage
setId
在接口中 DnsQuery
setId
在类中 AbstractDnsMessage
public DnsQuery setOpCode(DnsOpCode opCode)
DnsMessage
opCode
of this DNS message.setOpCode
在接口中 DnsMessage
setOpCode
在接口中 DnsQuery
setOpCode
在类中 AbstractDnsMessage
public DnsQuery setRecursionDesired(boolean recursionDesired)
DnsMessage
RD
(recursion desired} field of this DNS message.setRecursionDesired
在接口中 DnsMessage
setRecursionDesired
在接口中 DnsQuery
setRecursionDesired
在类中 AbstractDnsMessage
public DnsQuery setZ(int z)
DnsMessage
Z
(reserved for future use) field of this DNS message.setZ
在接口中 DnsMessage
setZ
在接口中 DnsQuery
setZ
在类中 AbstractDnsMessage
public DnsQuery setRecord(DnsSection section, DnsRecord record)
DnsMessage
section
of this DNS message to the specified record
,
making it a single-record section. When the specified section
is DnsSection.QUESTION
,
the specified record
must be a DnsQuestion
.setRecord
在接口中 DnsMessage
setRecord
在接口中 DnsQuery
setRecord
在类中 AbstractDnsMessage
public DnsQuery addRecord(DnsSection section, DnsRecord record)
DnsMessage
record
at the end of the specified section
of this DNS message.
When the specified section
is DnsSection.QUESTION
, the specified record
must be a DnsQuestion
.addRecord
在接口中 DnsMessage
addRecord
在接口中 DnsQuery
addRecord
在类中 AbstractDnsMessage
public DnsQuery addRecord(DnsSection section, int index, DnsRecord record)
DnsMessage
record
at the specified index
of the specified section
of this DNS message. When the specified section
is DnsSection.QUESTION
, the specified
record
must be a DnsQuestion
.addRecord
在接口中 DnsMessage
addRecord
在接口中 DnsQuery
addRecord
在类中 AbstractDnsMessage
public DnsQuery clear(DnsSection section)
DnsMessage
section
of this DNS message.clear
在接口中 DnsMessage
clear
在接口中 DnsQuery
clear
在类中 AbstractDnsMessage
public DnsQuery clear()
DnsMessage
clear
在接口中 DnsMessage
clear
在接口中 DnsQuery
clear
在类中 AbstractDnsMessage
public DnsQuery touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
在接口中 DnsMessage
touch
在接口中 DnsQuery
touch
在接口中 ReferenceCounted
touch
在类中 AbstractDnsMessage
public DnsQuery touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
在接口中 DnsMessage
touch
在接口中 DnsQuery
touch
在接口中 ReferenceCounted
touch
在类中 AbstractDnsMessage
public DnsQuery retain()
ReferenceCounted
1
.retain
在接口中 DnsMessage
retain
在接口中 DnsQuery
retain
在接口中 ReferenceCounted
retain
在类中 AbstractDnsMessage
public DnsQuery retain(int increment)
ReferenceCounted
increment
.retain
在接口中 DnsMessage
retain
在接口中 DnsQuery
retain
在接口中 ReferenceCounted
retain
在类中 AbstractDnsMessage
public java.lang.String toString()
toString
在类中 java.lang.Object