public final class DnsResponse extends DnsMessage
| Constructor and Description |
|---|
DnsResponse(int id,
InetSocketAddress sender) |
| Modifier and Type | Method and Description |
|---|---|
DnsResponse |
addAdditionalResource(DnsResource resource)
Adds an additional resource record to this message.
|
DnsResponse |
addAnswer(DnsResource answer)
Adds an answer resource record to this message.
|
DnsResponse |
addAuthorityResource(DnsResource resource)
Adds an authority resource record to this message.
|
DnsResponse |
addQuestion(DnsQuestion question)
Adds a question to this message.
|
DnsResponseHeader |
header()
Returns the header belonging to this message.
|
protected DnsResponseHeader |
newHeader(int id) |
DnsResponse |
retain()
Increases the reference count by
1. |
DnsResponse |
retain(int increment)
Increases the reference count by the specified
increment. |
InetSocketAddress |
sender()
The
InetSocketAddress of the sender of this DnsResponse |
DnsResponse |
touch()
Records the current access location of this object for debugging purposes.
|
DnsResponse |
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 DnsResponse(int id,
InetSocketAddress sender)
public InetSocketAddress sender()
InetSocketAddress of the sender of this DnsResponsepublic DnsResponse addAnswer(DnsResource answer)
DnsMessageaddAnswer in class DnsMessageanswer - the answer resource record to be addedpublic DnsResponse addQuestion(DnsQuestion question)
DnsMessageaddQuestion in class DnsMessagequestion - the question to be addedpublic DnsResponse addAuthorityResource(DnsResource resource)
DnsMessageaddAuthorityResource in class DnsMessageresource - the authority resource record to be addedpublic DnsResponse addAdditionalResource(DnsResource resource)
DnsMessageaddAdditionalResource in class DnsMessageresource - the additional resource record to be addedpublic DnsResponse touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ReferenceCountedtouch in class DnsMessagepublic DnsResponse retain()
ReferenceCounted1.retain in interface ReferenceCountedretain in class DnsMessagepublic DnsResponse retain(int increment)
ReferenceCountedincrement.retain in interface ReferenceCountedretain in class DnsMessagepublic DnsResponse touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ReferenceCountedtouch in class DnsMessagepublic DnsResponseHeader header()
DnsMessageheader in class DnsMessageprotected DnsResponseHeader newHeader(int id)
newHeader in class DnsMessageCopyright © 2008–2015 The Netty Project. All rights reserved.