public class DnsQuery extends DnsMessage
| Constructor and Description |
|---|
DnsQuery(int id,
InetSocketAddress recipient)
Constructs a DNS query.
|
| Modifier and Type | Method and Description |
|---|---|
DnsQuery |
addAdditionalResource(DnsResource resource)
Adds an additional resource record to this message.
|
DnsQuery |
addAnswer(DnsResource answer)
Adds an answer resource record to this message.
|
DnsQuery |
addAuthorityResource(DnsResource resource)
Adds an authority resource record to this message.
|
DnsQuery |
addQuestion(DnsQuestion question)
Adds a question to this message.
|
DnsQueryHeader |
header()
Returns the header belonging to this message.
|
protected DnsQueryHeader |
newHeader(int id) |
InetSocketAddress |
recipient()
Return the
InetSocketAddress of the recipient of the DnsQuery |
DnsQuery |
retain()
Increases the reference count by
1. |
DnsQuery |
retain(int increment)
Increases the reference count by the specified
increment. |
DnsQuery |
touch()
Records the current access location of this object for debugging purposes.
|
DnsQuery |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
additionalResources, answers, authorityResources, deallocate, questions, release, releaserefCnt, setRefCntpublic DnsQuery(int id,
InetSocketAddress recipient)
public InetSocketAddress recipient()
InetSocketAddress of the recipient of the DnsQuerypublic DnsQuery addAnswer(DnsResource answer)
DnsMessageaddAnswer in class DnsMessageanswer - the answer resource record to be addedpublic DnsQuery addQuestion(DnsQuestion question)
DnsMessageaddQuestion in class DnsMessagequestion - the question to be addedpublic DnsQuery addAuthorityResource(DnsResource resource)
DnsMessageaddAuthorityResource in class DnsMessageresource - the authority resource record to be addedpublic DnsQuery addAdditionalResource(DnsResource resource)
DnsMessageaddAdditionalResource in class DnsMessageresource - the additional resource record to be addedpublic DnsQuery touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ReferenceCountedtouch in class DnsMessagepublic DnsQuery retain()
ReferenceCounted1.retain in interface ReferenceCountedretain in class DnsMessagepublic DnsQuery retain(int increment)
ReferenceCountedincrement.retain in interface ReferenceCountedretain in class DnsMessagepublic DnsQuery touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ReferenceCountedtouch in class DnsMessagepublic DnsQueryHeader header()
DnsMessageheader in class DnsMessageprotected DnsQueryHeader newHeader(int id)
newHeader in class DnsMessageCopyright © 2008–2015 The Netty Project. All rights reserved.