Top Description Methods
io.netty.handler.codec.dns

public Interface DnsResponse

extends DnsMessage
Known Direct Implementers
io.netty.handler.codec.dns.DefaultDnsResponse
Annotations
@UnstableApi
Imports
io.netty.util.internal.UnstableApi

A DNS response message.

Method Summary

Modifier and TypeMethod and Description
public DnsResponse
addRecord(DnsSection section, DnsRecord record)

Redeclares io.netty.handler.codec.dns.DnsMessage.addRecord.

Adds the specified record at the end of the specified section of this DNS message.
public DnsResponse
addRecord(DnsSection section, int index, DnsRecord record)

Redeclares io.netty.handler.codec.dns.DnsMessage.addRecord.

Adds the specified record at the specified index of the specified section of this DNS message.
public DnsResponse
clear(DnsSection section)

Redeclares io.netty.handler.codec.dns.DnsMessage.clear.

Removes all the records in the specified section of this DNS message.
public DnsResponse
clear()

Redeclares io.netty.handler.codec.dns.DnsMessage.clear.

Removes all the records in this DNS message.
public DnsResponseCode
code()

Returns the 4 bit return code.

public boolean
isAuthoritativeAnswer()

Returns true if responding server is authoritative for the domain name in the query message.

public boolean
isRecursionAvailable()

Returns true if DNS server can handle recursive queries.

public boolean
isTruncated()

Returns true if response has been truncated, usually if it is over 512 bytes.

public DnsResponse
retain()

Redeclares io.netty.handler.codec.dns.DnsMessage.retain.

Increases the reference count by 1.
public DnsResponse
retain(int increment)

Redeclares io.netty.handler.codec.dns.DnsMessage.retain.

Increases the reference count by the specified increment.
public DnsResponse
setAuthoritativeAnswer(boolean
flag for authoritative answer
authoritativeAnswer
)

Set to true if responding server is authoritative for the domain name in the query message.

public DnsResponse
setCode(DnsResponseCode
the response code
code
)

Sets the response code for this message.

public DnsResponse
setId(int id)

Redeclares io.netty.handler.codec.dns.DnsMessage.setId.

Sets the ID of this DNS message.
public DnsResponse
setOpCode(DnsOpCode opCode)

Redeclares io.netty.handler.codec.dns.DnsMessage.setOpCode.

Sets the opCode of this DNS message.
public DnsResponse
setRecord(DnsSection section, DnsRecord record)

Redeclares io.netty.handler.codec.dns.DnsMessage.setRecord.

Sets the specified section of this DNS message to the specified record, making it a single-record section.
public DnsResponse
setRecursionAvailable(boolean
flag for recursion availability
recursionAvailable
)

Set to true if DNS server can handle recursive queries.

public DnsResponse
setRecursionDesired(boolean recursionDesired)

Redeclares io.netty.handler.codec.dns.DnsMessage.setRecursionDesired.

Sets the RD (recursion desired} field of this DNS message.
public DnsResponse
setTruncated(boolean
flag for truncation
truncated
)

Set to true if response has been truncated (usually happens for responses over 512 bytes).

public DnsResponse
setZ(int z)

Redeclares io.netty.handler.codec.dns.DnsMessage.setZ.

Sets the Z (reserved for future use) field of this DNS message.
public DnsResponse
touch()

Redeclares io.netty.handler.codec.dns.DnsMessage.touch.

Records the current access location of this object for debugging purposes.
public DnsResponse
touch(Object hint)

Redeclares io.netty.handler.codec.dns.DnsMessage.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty.handler.codec.dns.DnsMessage:
countcountidisRecursionDesiredopCoderecordAtrecordAtremoveRecordsetRecordz

Method Detail

addRecordback to summary
public DnsResponse addRecord(DnsSection section, DnsRecord record)

Redeclares io.netty.handler.codec.dns.DnsMessage.addRecord.

Doc from io.netty.handler.codec.dns.DnsMessage.addRecord.

Adds the specified record 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.

Annotations
@Override
addRecordback to summary
public DnsResponse addRecord(DnsSection section, int index, DnsRecord record)

Redeclares io.netty.handler.codec.dns.DnsMessage.addRecord.

Doc from io.netty.handler.codec.dns.DnsMessage.addRecord.

Adds the specified record 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.

Annotations
@Override
clearback to summary
public DnsResponse clear(DnsSection section)

Redeclares io.netty.handler.codec.dns.DnsMessage.clear.

Doc from io.netty.handler.codec.dns.DnsMessage.clear.

Removes all the records in the specified section of this DNS message.

Annotations
@Override
clearback to summary
public DnsResponse clear()

Redeclares io.netty.handler.codec.dns.DnsMessage.clear.

Doc from io.netty.handler.codec.dns.DnsMessage.clear.

Removes all the records in this DNS message.

Annotations
@Override
codeback to summary
public DnsResponseCode code()

Returns the 4 bit return code.

isAuthoritativeAnswerback to summary
public boolean isAuthoritativeAnswer()

Returns true if responding server is authoritative for the domain name in the query message.

isRecursionAvailableback to summary
public boolean isRecursionAvailable()

Returns true if DNS server can handle recursive queries.

isTruncatedback to summary
public boolean isTruncated()

Returns true if response has been truncated, usually if it is over 512 bytes.

retainback to summary
public DnsResponse retain()

Redeclares io.netty.handler.codec.dns.DnsMessage.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public DnsResponse retain(int increment)

Redeclares io.netty.handler.codec.dns.DnsMessage.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
setAuthoritativeAnswerback to summary
public DnsResponse setAuthoritativeAnswer(boolean authoritativeAnswer)

Set to true if responding server is authoritative for the domain name in the query message.

Parameters
authoritativeAnswer:boolean

flag for authoritative answer

setCodeback to summary
public DnsResponse setCode(DnsResponseCode code)

Sets the response code for this message.

Parameters
code:DnsResponseCode

the response code

setIdback to summary
public DnsResponse setId(int id)

Redeclares io.netty.handler.codec.dns.DnsMessage.setId.

Doc from io.netty.handler.codec.dns.DnsMessage.setId.

Sets the ID of this DNS message.

Annotations
@Override
setOpCodeback to summary
public DnsResponse setOpCode(DnsOpCode opCode)

Redeclares io.netty.handler.codec.dns.DnsMessage.setOpCode.

Doc from io.netty.handler.codec.dns.DnsMessage.setOpCode.

Sets the opCode of this DNS message.

Annotations
@Override
setRecordback to summary
public DnsResponse setRecord(DnsSection section, DnsRecord record)

Redeclares io.netty.handler.codec.dns.DnsMessage.setRecord.

Doc from io.netty.handler.codec.dns.DnsMessage.setRecord.

Sets the specified section 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.

Annotations
@Override
setRecursionAvailableback to summary
public DnsResponse setRecursionAvailable(boolean recursionAvailable)

Set to true if DNS server can handle recursive queries.

Parameters
recursionAvailable:boolean

flag for recursion availability

setRecursionDesiredback to summary
public DnsResponse setRecursionDesired(boolean recursionDesired)

Redeclares io.netty.handler.codec.dns.DnsMessage.setRecursionDesired.

Doc from io.netty.handler.codec.dns.DnsMessage.setRecursionDesired.

Sets the RD (recursion desired} field of this DNS message.

Annotations
@Override
setTruncatedback to summary
public DnsResponse setTruncated(boolean truncated)

Set to true if response has been truncated (usually happens for responses over 512 bytes).

Parameters
truncated:boolean

flag for truncation

setZback to summary
public DnsResponse setZ(int z)

Redeclares io.netty.handler.codec.dns.DnsMessage.setZ.

Doc from io.netty.handler.codec.dns.DnsMessage.setZ.

Sets the Z (reserved for future use) field of this DNS message.

Annotations
@Override
touchback to summary
public DnsResponse touch()

Redeclares io.netty.handler.codec.dns.DnsMessage.touch.

Doc from io.netty.util.ReferenceCounted.touch.

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 ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public DnsResponse touch(Object hint)

Redeclares io.netty.handler.codec.dns.DnsMessage.touch.

Doc from io.netty.util.ReferenceCounted.touch.

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 ResourceLeakDetector.

Annotations
@Override