Class DnsResponseDecoder<A extends java.net.SocketAddress>

java.lang.Object
io.netty.handler.codec.dns.DnsResponseDecoder<A>

abstract class DnsResponseDecoder<A extends java.net.SocketAddress> extends java.lang.Object
  • Field Details

  • Constructor Details

    • DnsResponseDecoder

      DnsResponseDecoder(DnsRecordDecoder recordDecoder)
      Creates a new decoder with the specified recordDecoder.
  • Method Details

    • decode

      final DnsResponse decode(A sender, A recipient, ByteBuf buffer) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • newResponse

      protected abstract DnsResponse newResponse(A sender, A recipient, int id, DnsOpCode opCode, DnsResponseCode responseCode) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • decodeQuestions

      private void decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • decodeRecords

      private boolean decodeRecords(DnsResponse response, DnsSection section, ByteBuf buf, int count) throws java.lang.Exception
      Throws:
      java.lang.Exception