Class DnsResponseDecoder<A extends java.net.SocketAddress>


  • abstract class DnsResponseDecoder<A extends java.net.SocketAddress>
    extends java.lang.Object
    • Constructor Detail

      • DnsResponseDecoder

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

      • 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