DnsMessage.
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private Object | |
| private Object | |
| private short | |
| private final ResourceLeakTracker | |
| private static final ResourceLeakDetector | |
| private DnsOpCode | |
| private Object | |
| private boolean | |
| private static final int | |
| private static final int | |
| private byte |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractDnsMessage(int id, DnsOpCode opCode)
Creates a new instance with the specified |
| Modifier and Type | Method and Description |
|---|---|
| public DnsMessage | addRecord(DnsSection section, DnsRecord record)
Implements io. record at the end of the specified section of this DNS message.
|
| private void | |
| public DnsMessage | addRecord(DnsSection section, int index, DnsRecord record)
Implements io. record at the specified index of the specified section
of this DNS message.
|
| private void | |
| private static <T extends DnsRecord> T | |
| private static DnsRecord | |
| public DnsMessage | clear(DnsSection section)
Implements io. section of this DNS message.
|
| public DnsMessage | clear()
Implements io. |
| private void | |
| public int | count(DnsSection section)
Implements io. section of this DNS message.
|
| private int | |
| public int | count()
Implements io. |
| protected void | deallocate()
Implements abstract io. refCnt() is equals 0.
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public int | |
| public boolean | isRecursionDesired()
Implements io. RD (recursion desired} field of this DNS message.
|
| private static ArrayList | |
| public DnsOpCode | opCode()
Implements io. opCode of this DNS message.
|
| public <T extends DnsRecord> T | recordAt(DnsSection section)
Implements io. section of this DNS message.
|
| private <T extends DnsRecord> T | |
| public <T extends DnsRecord> T | recordAt(DnsSection section, int index)
Implements io. index of the specified section of this DNS message.
|
| private <T extends DnsRecord> T | |
| public <T extends DnsRecord> T | removeRecord(DnsSection section, int index)
Implements io. index of the specified section from this DNS message.
|
| private <T extends DnsRecord> T | |
| public DnsMessage | retain()
Overrides io. Implements io. 1.
|
| public DnsMessage | retain(int increment)
Overrides io. Implements io. increment.
|
| private Object | |
| private static int | |
| public DnsMessage | setId(int id)
Implements io. ID of this DNS message.
|
| public DnsMessage | setOpCode(DnsOpCode opCode)
Implements io. opCode of this DNS message.
|
| public DnsMessage | setRecord(DnsSection section, DnsRecord record)
Implements io. section of this DNS message to the specified record,
making it a single-record section.
|
| private void | |
| public <T extends DnsRecord> T | setRecord(DnsSection section, int index, DnsRecord record)
Implements io. record at the specified index of the specified section
of this DNS message.
|
| private <T extends DnsRecord> T | |
| public DnsMessage | setRecursionDesired(boolean recursionDesired)
Implements io. RD (recursion desired} field of this DNS message.
|
| private void | |
| public DnsMessage | setZ(int z)
Implements io. Z (reserved for future use) field of this DNS message.
|
| public DnsMessage | touch()
Overrides io. Implements io. |
| public DnsMessage | touch(Object hint)
Implements io. |
| public int | z()
Implements io. Z (reserved for future use) field of this DNS message.
|
| additionals | back to summary |
|---|---|
| private Object additionals | |
| answers | back to summary |
|---|---|
| private Object answers | |
| authorities | back to summary |
|---|---|
| private Object authorities | |
| id | back to summary |
|---|---|
| private short id | |
| leak | back to summary |
|---|---|
| private final ResourceLeakTracker<DnsMessage> leak | |
| leakDetector | back to summary |
|---|---|
| private static final ResourceLeakDetector<DnsMessage> leakDetector | |
| opCode | back to summary |
|---|---|
| private DnsOpCode opCode | |
| questions | back to summary |
|---|---|
| private Object questions | |
| recursionDesired | back to summary |
|---|---|
| private boolean recursionDesired | |
| SECTION_COUNT | back to summary |
|---|---|
| private static final int SECTION_COUNT | |
| SECTION_QUESTION | back to summary |
|---|---|
| private static final int SECTION_QUESTION | |
| z | back to summary |
|---|---|
| private byte z | |
| AbstractDnsMessage | back to summary |
|---|---|
| protected AbstractDnsMessage(int id) Creates a new instance with the specified | |
| AbstractDnsMessage | back to summary |
|---|---|
| protected AbstractDnsMessage(int id, DnsOpCode opCode) Creates a new instance with the specified | |
| addRecord | back to summary |
|---|---|
| public DnsMessage addRecord(DnsSection section, DnsRecord record) Implements io. Doc from io. Adds the specified
| |
| addRecord | back to summary |
|---|---|
| private void addRecord(int section, DnsRecord record) | |
| addRecord | back to summary |
|---|---|
| public DnsMessage addRecord(DnsSection section, int index, DnsRecord record) Implements io. Doc from io. Adds the specified
| |
| addRecord | back to summary |
|---|---|
| private void addRecord(int section, int index, DnsRecord record) | |
| castRecord | back to summary |
|---|---|
private static <T extends DnsRecord> T castRecord(Object record)
| |
| checkQuestion | back to summary |
|---|---|
| private static DnsRecord checkQuestion(int section, DnsRecord record) | |
| clear | back to summary |
|---|---|
| public DnsMessage clear(DnsSection section) Implements io. Doc from io. Removes all the records in the specified
| |
| clear | back to summary |
|---|---|
| public DnsMessage clear() Implements io. Doc from io. Removes all the records in this DNS message.
| |
| clear | back to summary |
|---|---|
| private void clear(int section) | |
| count | back to summary |
|---|---|
| public int count(DnsSection section) Implements io. Doc from io. Returns the number of records in the specified
| |
| count | back to summary |
|---|---|
| private int count(int section) | |
| count | back to summary |
|---|---|
| public int count() Implements io. Doc from io. Returns the number of records in this DNS message.
| |
| deallocate | back to summary |
|---|---|
| protected void deallocate() Implements abstract io. Doc from io. Called once
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| id | back to summary |
|---|---|
| public int id() Implements io. Doc from io. Returns the
| |
| isRecursionDesired | back to summary |
|---|---|
| public boolean isRecursionDesired() Implements io. Doc from io. Returns the
| |
| newRecordList | back to summary |
|---|---|
| private static ArrayList | |
| opCode | back to summary |
|---|---|
| public DnsOpCode opCode() Implements io. Doc from io. Returns the
| |
| recordAt | back to summary |
|---|---|
| public <T extends DnsRecord> T recordAt(DnsSection section) Implements io. Doc from io. Returns the first record in the specified
| |
| recordAt | back to summary |
|---|---|
| private <T extends DnsRecord> T recordAt(int section) | |
| recordAt | back to summary |
|---|---|
| public <T extends DnsRecord> T recordAt(DnsSection section, int index) Implements io. Doc from io. Returns the record at the specified
| |
| recordAt | back to summary |
|---|---|
| private <T extends DnsRecord> T recordAt(int section, int index) | |
| removeRecord | back to summary |
|---|---|
| public <T extends DnsRecord> T removeRecord(DnsSection section, int index) Implements io. Doc from io. Removes the record at the specified
| |
| removeRecord | back to summary |
|---|---|
| private <T extends DnsRecord> T removeRecord(int section, int index) | |
| retain | back to summary |
|---|---|
| public DnsMessage retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public DnsMessage retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| sectionAt | back to summary |
|---|---|
| private Object sectionAt(int section) | |
| sectionOrdinal | back to summary |
|---|---|
| private static int sectionOrdinal(DnsSection section) | |
| setId | back to summary |
|---|---|
| public DnsMessage setId(int id) Implements io. Doc from io. Sets the
| |
| setOpCode | back to summary |
|---|---|
| public DnsMessage setOpCode(DnsOpCode opCode) Implements io. Doc from io. Sets the
| |
| setRecord | back to summary |
|---|---|
| public DnsMessage setRecord(DnsSection section, DnsRecord record) Implements io. Doc from io. Sets the specified
| |
| setRecord | back to summary |
|---|---|
| private void setRecord(int section, DnsRecord record) | |
| setRecord | back to summary |
|---|---|
| public <T extends DnsRecord> T setRecord(DnsSection section, int index, DnsRecord record) Implements io. Doc from io. Sets the specified
| |
| setRecord | back to summary |
|---|---|
| private <T extends DnsRecord> T setRecord(int section, int index, DnsRecord record) | |
| setRecursionDesired | back to summary |
|---|---|
| public DnsMessage setRecursionDesired(boolean recursionDesired) Implements io. Doc from io. Sets the
| |
| setSection | back to summary |
|---|---|
| private void setSection(int section, Object value) | |
| setZ | back to summary |
|---|---|
| public DnsMessage setZ(int z) Implements io. Doc from io. Sets the
| |
| touch | back to summary |
|---|---|
| public DnsMessage touch() Overrides io. Implements io. Doc from io. Records the current access location of this object for debugging purposes.
If this object is determined to be leaked, the information recorded by this operation will be provided to you
via
| |
| touch | back to summary |
|---|---|
| public DnsMessage touch(Object hint) Implements io. Doc from io. Records the current access location of this object with an additional arbitrary information for debugging
purposes. If this object is determined to be leaked, the information recorded by this operation will be
provided to you via
| |
| z | back to summary |
|---|---|
| public int z() Implements io. Doc from io. Returns the
| |