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

public Interface DnsQuery

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

A DNS query message.

Method Summary

Modifier and TypeMethod and Description
public DnsQuery
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 DnsQuery
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 DnsQuery
clear(DnsSection section)

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

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

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

Removes all the records in this DNS message.
public DnsQuery
retain()

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

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

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

Increases the reference count by the specified increment.
public DnsQuery
setId(int id)

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

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

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

Sets the opCode of this DNS message.
public DnsQuery
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 DnsQuery
setRecursionDesired(boolean recursionDesired)

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

Sets the RD (recursion desired} field of this DNS message.
public DnsQuery
setZ(int z)

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

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

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

Records the current access location of this object for debugging purposes.
public DnsQuery
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 DnsQuery 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 DnsQuery 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 DnsQuery 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 DnsQuery 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
retainback to summary
public DnsQuery 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 DnsQuery 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
setIdback to summary
public DnsQuery 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 DnsQuery 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 DnsQuery 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
setRecursionDesiredback to summary
public DnsQuery 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
setZback to summary
public DnsQuery 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 DnsQuery 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 DnsQuery 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