Interface ProtocolDecoder

    • Method Detail

      • finishDecode

        void finishDecode​(IoSession session,
                          ProtocolDecoderOutput out)
                   throws java.lang.Exception
        Invoked when the specified session is closed. This method is useful when you deal with the protocol which doesn't specify the length of a message such as HTTP response without content-length header. Implement this method to process the remaining data that decode(IoSession, IoBuffer, ProtocolDecoderOutput) method didn't process completely.
        Parameters:
        session - The current Session
        out - The ProtocolDecoderOutput that contains the decoded message
        Throws:
        java.lang.Exception - if the read data violated protocol specification
      • dispose

        void dispose​(IoSession session)
              throws java.lang.Exception
        Releases all resources related with this decoder.
        Parameters:
        session - The current Session
        Throws:
        java.lang.Exception - if failed to dispose all resources