DnsResponse implementation for UDP/IP.
| Modifier and Type | Field and Description |
|---|---|
| private final InetSocketAddress | |
| private final InetSocketAddress |
| Access | Constructor and Description |
|---|---|
| public | DatagramDnsResponse(InetSocketAddress
the address of the sender sender, InetSocketAddress the address of the recipient recipient, int the id)ID of the DNS responseCreates a new instance with the |
| public | DatagramDnsResponse(InetSocketAddress
the address of the sender sender, InetSocketAddress the address of the recipient recipient, int the id, DnsOpCode ID of the DNS responsethe opCode)opCode of the DNS responseCreates a new instance with the |
| public | DatagramDnsResponse(InetSocketAddress
the address of the sender sender, InetSocketAddress the address of the recipient recipient, int the id, DnsOpCode ID of the DNS responsethe opCode, DnsResponseCode opCode of the DNS responsethe responseCode)RCODE of the DNS responseCreates a new instance. |
| recipient | back to summary |
|---|---|
| private final InetSocketAddress recipient | |
| sender | back to summary |
|---|---|
| private final InetSocketAddress sender | |
| DatagramDnsResponse | back to summary |
|---|---|
| public DatagramDnsResponse(InetSocketAddress sender, InetSocketAddress recipient, int id) Creates a new instance with the
| |
| DatagramDnsResponse | back to summary |
|---|---|
| public DatagramDnsResponse(InetSocketAddress sender, InetSocketAddress recipient, int id, DnsOpCode opCode) Creates a new instance with the
| |
| DatagramDnsResponse | back to summary |
|---|---|
| public DatagramDnsResponse(InetSocketAddress sender, InetSocketAddress recipient, int id, DnsOpCode opCode, DnsResponseCode responseCode) Creates a new instance.
| |
| addRecord | back to summary |
|---|---|
| public DatagramDnsResponse addRecord(DnsSection section, DnsRecord record) Overrides io. Implements io. Doc from io. Adds the specified
| |
| addRecord | back to summary |
|---|---|
| public DatagramDnsResponse addRecord(DnsSection section, int index, DnsRecord record) Overrides io. Implements io. Doc from io. Adds the specified
| |
| clear | back to summary |
|---|---|
| public DatagramDnsResponse clear(DnsSection section) Overrides io. Implements io. Doc from io. Removes all the records in the specified
| |
| clear | back to summary |
|---|---|
| public DatagramDnsResponse clear() Overrides io. Implements io. Doc from io. Removes all the records in this DNS message.
| |
| content | back to summary |
|---|---|
| public DatagramDnsResponse content() Implements io. Doc from io. Returns the message wrapped by this envelope message.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides io. 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 io. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| recipient | back to summary |
|---|---|
| public InetSocketAddress recipient() Implements io. Doc from io. Returns the address of the recipient of this message.
| |
| retain | back to summary |
|---|---|
| public DatagramDnsResponse retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public DatagramDnsResponse retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| sender | back to summary |
|---|---|
| public InetSocketAddress sender() Implements io. Doc from io. Returns the address of the sender of this message.
| |
| setAuthoritativeAnswer | back to summary |
|---|---|
| public DatagramDnsResponse setAuthoritativeAnswer(boolean authoritativeAnswer) Overrides io. Implements io. Doc from io. Set to
| |
| setCode | back to summary |
|---|---|
| public DatagramDnsResponse setCode(DnsResponseCode code) Overrides io. Implements io. Doc from io. Sets the response code for this message.
| |
| setId | back to summary |
|---|---|
| public DatagramDnsResponse setId(int id) Overrides io. Implements io. Doc from io. Sets the
| |
| setOpCode | back to summary |
|---|---|
| public DatagramDnsResponse setOpCode(DnsOpCode opCode) Overrides io. Implements io. Doc from io. Sets the
| |
| setRecord | back to summary |
|---|---|
| public DatagramDnsResponse setRecord(DnsSection section, DnsRecord record) Overrides io. Implements io. Doc from io. Sets the specified
| |
| setRecursionAvailable | back to summary |
|---|---|
| public DatagramDnsResponse setRecursionAvailable(boolean recursionAvailable) Overrides io. Implements io. Doc from io. Set to
| |
| setRecursionDesired | back to summary |
|---|---|
| public DatagramDnsResponse setRecursionDesired(boolean recursionDesired) Overrides io. Implements io. Doc from io. Sets the
| |
| setTruncated | back to summary |
|---|---|
| public DatagramDnsResponse setTruncated(boolean truncated) Overrides io. Implements io. Doc from io. Set to
| |
| setZ | back to summary |
|---|---|
| public DatagramDnsResponse setZ(int z) Overrides io. Implements io. Doc from io. Sets the
| |
| touch | back to summary |
|---|---|
| public DatagramDnsResponse 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 DatagramDnsResponse touch(Object hint) Overrides io. 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
| |