@UnstableApi public class DatagramDnsQuery extends DefaultDnsQuery implements AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>
DnsQuery implementation for UDP/IP.| 构造器和说明 |
|---|
DatagramDnsQuery(java.net.InetSocketAddress sender,
java.net.InetSocketAddress recipient,
int id)
Creates a new instance with the
DnsOpCode.QUERY opCode. |
DatagramDnsQuery(java.net.InetSocketAddress sender,
java.net.InetSocketAddress recipient,
int id,
DnsOpCode opCode)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DatagramDnsQuery |
addRecord(DnsSection section,
DnsRecord record)
Adds the specified
record at the end of the specified section of this DNS message. |
DatagramDnsQuery |
addRecord(DnsSection section,
int index,
DnsRecord record)
Adds the specified
record at the specified index of the specified section
of this DNS message. |
DatagramDnsQuery |
clear()
Removes all the records in this DNS message.
|
DatagramDnsQuery |
clear(DnsSection section)
Removes all the records in the specified
section of this DNS message. |
DatagramDnsQuery |
content()
Returns the message wrapped by this envelope message.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.net.InetSocketAddress |
recipient()
Returns the address of the recipient of this message.
|
DatagramDnsQuery |
retain()
Increases the reference count by
1. |
DatagramDnsQuery |
retain(int increment)
Increases the reference count by the specified
increment. |
java.net.InetSocketAddress |
sender()
Returns the address of the sender of this message.
|
DatagramDnsQuery |
setId(int id)
Sets the
ID of this DNS message. |
DatagramDnsQuery |
setOpCode(DnsOpCode opCode)
Sets the
opCode of this DNS message. |
DatagramDnsQuery |
setRecord(DnsSection section,
DnsRecord record)
Sets the specified
section of this DNS message to the specified record,
making it a single-record section. |
DatagramDnsQuery |
setRecursionDesired(boolean recursionDesired)
Sets the
RD (recursion desired} field of this DNS message. |
DatagramDnsQuery |
setZ(int z)
Sets the
Z (reserved for future use) field of this DNS message. |
DatagramDnsQuery |
touch()
Records the current access location of this object for debugging purposes.
|
DatagramDnsQuery |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
toStringcount, count, deallocate, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, zrefCnt, release, release, setRefCntrefCnt, release, releasecount, count, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, zpublic DatagramDnsQuery(java.net.InetSocketAddress sender,
java.net.InetSocketAddress recipient,
int id)
DnsOpCode.QUERY opCode.sender - the address of the senderrecipient - the address of the recipientid - the ID of the DNS querypublic DatagramDnsQuery(java.net.InetSocketAddress sender,
java.net.InetSocketAddress recipient,
int id,
DnsOpCode opCode)
sender - the address of the senderrecipient - the address of the recipientid - the ID of the DNS queryopCode - the opCode of the DNS querypublic DatagramDnsQuery content()
AddressedEnvelopecontent 在接口中 AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>public java.net.InetSocketAddress sender()
AddressedEnvelopesender 在接口中 AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>public java.net.InetSocketAddress recipient()
AddressedEnveloperecipient 在接口中 AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>public DatagramDnsQuery setId(int id)
DnsMessageID of this DNS message.setId 在接口中 DnsMessagesetId 在接口中 DnsQuerysetId 在类中 DefaultDnsQuerypublic DatagramDnsQuery setOpCode(DnsOpCode opCode)
DnsMessageopCode of this DNS message.setOpCode 在接口中 DnsMessagesetOpCode 在接口中 DnsQuerysetOpCode 在类中 DefaultDnsQuerypublic DatagramDnsQuery setRecursionDesired(boolean recursionDesired)
DnsMessageRD (recursion desired} field of this DNS message.setRecursionDesired 在接口中 DnsMessagesetRecursionDesired 在接口中 DnsQuerysetRecursionDesired 在类中 DefaultDnsQuerypublic DatagramDnsQuery setZ(int z)
DnsMessageZ (reserved for future use) field of this DNS message.setZ 在接口中 DnsMessagesetZ 在接口中 DnsQuerysetZ 在类中 DefaultDnsQuerypublic DatagramDnsQuery setRecord(DnsSection section, DnsRecord record)
DnsMessagesection 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 在接口中 DnsMessagesetRecord 在接口中 DnsQuerysetRecord 在类中 DefaultDnsQuerypublic DatagramDnsQuery addRecord(DnsSection section, DnsRecord record)
DnsMessagerecord 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 在接口中 DnsMessageaddRecord 在接口中 DnsQueryaddRecord 在类中 DefaultDnsQuerypublic DatagramDnsQuery addRecord(DnsSection section, int index, DnsRecord record)
DnsMessagerecord 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 在接口中 DnsMessageaddRecord 在接口中 DnsQueryaddRecord 在类中 DefaultDnsQuerypublic DatagramDnsQuery clear(DnsSection section)
DnsMessagesection of this DNS message.clear 在接口中 DnsMessageclear 在接口中 DnsQueryclear 在类中 DefaultDnsQuerypublic DatagramDnsQuery clear()
DnsMessageclear 在接口中 DnsMessageclear 在接口中 DnsQueryclear 在类中 DefaultDnsQuerypublic DatagramDnsQuery touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch 在接口中 AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>touch 在接口中 DnsMessagetouch 在接口中 DnsQuerytouch 在接口中 ReferenceCountedtouch 在类中 DefaultDnsQuerypublic DatagramDnsQuery touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch 在接口中 AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>touch 在接口中 DnsMessagetouch 在接口中 DnsQuerytouch 在接口中 ReferenceCountedtouch 在类中 DefaultDnsQuerypublic DatagramDnsQuery retain()
ReferenceCounted1.retain 在接口中 AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>retain 在接口中 DnsMessageretain 在接口中 DnsQueryretain 在接口中 ReferenceCountedretain 在类中 DefaultDnsQuerypublic DatagramDnsQuery retain(int increment)
ReferenceCountedincrement.retain 在接口中 AddressedEnvelope<DatagramDnsQuery,java.net.InetSocketAddress>retain 在接口中 DnsMessageretain 在接口中 DnsQueryretain 在接口中 ReferenceCountedretain 在类中 DefaultDnsQuerypublic boolean equals(java.lang.Object obj)
equals 在类中 AbstractDnsMessagepublic int hashCode()
hashCode 在类中 AbstractDnsMessage