GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.dns
  • DnsResponse

This view

  • Original page
  • New address

GeezerVison is showing netty.io — DnsResponse (Netty API Reference (4.1.141.Final))

Interface DnsResponse

All Superinterfaces:
DnsMessage, ReferenceCounted
All Known Implementing Classes:
DatagramDnsResponse, DefaultDnsResponse

public interface DnsResponse extends DnsMessage
A DNS response message.
  • Method Summary

    Modifier and Type
    Method
    Description
    DnsResponse
    addRecord(DnsSection section, int index, DnsRecord record)
    Adds the specified record at the specified index of the specified section of this DNS message.
    DnsResponse
    addRecord(DnsSection section, DnsRecord record)
    Adds the specified record at the end of the specified section of this DNS message.
    DnsResponse
    clear()
    Removes all the records in this DNS message.
    DnsResponse
    clear(DnsSection section)
    Removes all the records in the specified section of this DNS message.
    DnsResponseCode
    code()
    Returns the 4 bit return code.
    boolean
    isAuthoritativeAnswer()
    Returns true if responding server is authoritative for the domain name in the query message.
    boolean
    isRecursionAvailable()
    Returns true if DNS server can handle recursive queries.
    boolean
    isTruncated()
    Returns true if response has been truncated, usually if it is over 512 bytes.
    DnsResponse
    retain()
    Increases the reference count by 1.
    DnsResponse
    retain(int increment)
    Increases the reference count by the specified increment.
    DnsResponse
    setAuthoritativeAnswer(boolean authoritativeAnswer)
    Set to true if responding server is authoritative for the domain name in the query message.
    DnsResponse
    setCode(DnsResponseCode code)
    Sets the response code for this message.
    DnsResponse
    setId(int id)
    Sets the ID of this DNS message.
    DnsResponse
    setOpCode(DnsOpCode opCode)
    Sets the opCode of this DNS message.
    DnsResponse
    setRecord(DnsSection section, DnsRecord record)
    Sets the specified section of this DNS message to the specified record, making it a single-record section.
    DnsResponse
    setRecursionAvailable(boolean recursionAvailable)
    Set to true if DNS server can handle recursive queries.
    DnsResponse
    setRecursionDesired(boolean recursionDesired)
    Sets the RD (recursion desired} field of this DNS message.
    DnsResponse
    setTruncated(boolean truncated)
    Set to true if response has been truncated (usually happens for responses over 512 bytes).
    DnsResponse
    setZ(int z)
    Sets the Z (reserved for future use) field of this DNS message.
    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 additional arbitrary information for debugging purposes.

    Methods inherited from interface DnsMessage

    count, count, id, isRecursionDesired, opCode, recordAt, recordAt, removeRecord, setRecord, z
    Modifier and Type
    Method
    Description
    int
    count()
    Returns the number of records in this DNS message.
    int
    count(DnsSection section)
    Returns the number of records in the specified section of this DNS message.
    int
    id()
    Returns the ID of this DNS message.
    boolean
    isRecursionDesired()
    Returns the RD (recursion desired} field of this DNS message.
    DnsOpCode
    opCode()
    Returns the opCode of this DNS message.
    <T extends DnsRecord>
    T
    recordAt(DnsSection section)
    Returns the first record in the specified section of this DNS message.
    <T extends DnsRecord>
    T
    recordAt(DnsSection section, int index)
    Returns the record at the specified index of the specified section of this DNS message.
    <T extends DnsRecord>
    T
    removeRecord(DnsSection section, int index)
    Removes the record at the specified index of the specified section from this DNS message.
    <T extends DnsRecord>
    T
    setRecord(DnsSection section, int index, DnsRecord record)
    Sets the specified record at the specified index of the specified section of this DNS message.
    int
    z()
    Returns the Z (reserved for future use) field of this DNS message.

    Methods inherited from interface ReferenceCounted

    refCnt, release, release
    Modifier and Type
    Method
    Description
    int
    refCnt()
    Returns the reference count of this object.
    boolean
    release()
    Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
    boolean
    release(int decrement)
    Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
  • Method Details

    • isAuthoritativeAnswer

      boolean isAuthoritativeAnswer()
      Returns true if responding server is authoritative for the domain name in the query message.
    • setAuthoritativeAnswer

      DnsResponse setAuthoritativeAnswer(boolean authoritativeAnswer)
      Set to true if responding server is authoritative for the domain name in the query message.
      Parameters:
      authoritativeAnswer - flag for authoritative answer
    • isTruncated

      boolean isTruncated()
      Returns true if response has been truncated, usually if it is over 512 bytes.
    • setTruncated

      DnsResponse setTruncated(boolean truncated)
      Set to true if response has been truncated (usually happens for responses over 512 bytes).
      Parameters:
      truncated - flag for truncation
    • isRecursionAvailable

      boolean isRecursionAvailable()
      Returns true if DNS server can handle recursive queries.
    • setRecursionAvailable

      DnsResponse setRecursionAvailable(boolean recursionAvailable)
      Set to true if DNS server can handle recursive queries.
      Parameters:
      recursionAvailable - flag for recursion availability
    • code

      DnsResponseCode code()
      Returns the 4 bit return code.
    • setCode

      DnsResponse setCode(DnsResponseCode code)
      Sets the response code for this message.
      Parameters:
      code - the response code
    • setId

      DnsResponse setId(int id)
      Description copied from interface: DnsMessage
      Sets the ID of this DNS message.
      Specified by:
      setId in interface DnsMessage
    • setOpCode

      DnsResponse setOpCode(DnsOpCode opCode)
      Description copied from interface: DnsMessage
      Sets the opCode of this DNS message.
      Specified by:
      setOpCode in interface DnsMessage
    • setRecursionDesired

      DnsResponse setRecursionDesired(boolean recursionDesired)
      Description copied from interface: DnsMessage
      Sets the RD (recursion desired} field of this DNS message.
      Specified by:
      setRecursionDesired in interface DnsMessage
    • setZ

      DnsResponse setZ(int z)
      Description copied from interface: DnsMessage
      Sets the Z (reserved for future use) field of this DNS message.
      Specified by:
      setZ in interface DnsMessage
    • setRecord

      DnsResponse setRecord(DnsSection section, DnsRecord record)
      Description copied from interface: DnsMessage
      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.
      Specified by:
      setRecord in interface DnsMessage
    • addRecord

      DnsResponse addRecord(DnsSection section, DnsRecord record)
      Description copied from interface: DnsMessage
      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.
      Specified by:
      addRecord in interface DnsMessage
    • addRecord

      DnsResponse addRecord(DnsSection section, int index, DnsRecord record)
      Description copied from interface: DnsMessage
      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.
      Specified by:
      addRecord in interface DnsMessage
    • clear

      DnsResponse clear(DnsSection section)
      Description copied from interface: DnsMessage
      Removes all the records in the specified section of this DNS message.
      Specified by:
      clear in interface DnsMessage
    • clear

      DnsResponse clear()
      Description copied from interface: DnsMessage
      Removes all the records in this DNS message.
      Specified by:
      clear in interface DnsMessage
    • touch

      DnsResponse touch()
      Description copied from interface: ReferenceCounted
      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).
      Specified by:
      touch in interface DnsMessage
      Specified by:
      touch in interface ReferenceCounted
    • touch

      DnsResponse touch(Object hint)
      Description copied from interface: ReferenceCounted
      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.
      Specified by:
      touch in interface DnsMessage
      Specified by:
      touch in interface ReferenceCounted
    • retain

      DnsResponse retain()
      Description copied from interface: ReferenceCounted
      Increases the reference count by 1.
      Specified by:
      retain in interface DnsMessage
      Specified by:
      retain in interface ReferenceCounted
    • retain

      DnsResponse retain(int increment)
      Description copied from interface: ReferenceCounted
      Increases the reference count by the specified increment.
      Specified by:
      retain in interface DnsMessage
      Specified by:
      retain in interface ReferenceCounted
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.