Class RtspMessageDecoder

    • Constructor Detail

      • RtspMessageDecoder

        protected RtspMessageDecoder()
        Creates a new instance with the default maxInitialLineLength (4096}, maxHeaderSize (8192), and maxContentLength (8192).
      • RtspMessageDecoder

        protected RtspMessageDecoder​(int maxInitialLineLength,
                                     int maxHeaderSize,
                                     int maxContentLength)
        Creates a new instance with the specified parameters.
    • Method Detail

      • decode

        protected java.lang.Object decode​(ChannelHandlerContext ctx,
                                          Channel channel,
                                          ChannelBuffer buffer,
                                          HttpMessageDecoder.State state)
                                   throws java.lang.Exception
        Description copied from class: ReplayingDecoder
        Decodes the received packets so far into a frame.
        Overrides:
        decode in class HttpMessageDecoder
        Parameters:
        ctx - the context of this handler
        channel - the current channel
        buffer - the cumulative buffer of received packets so far. Note that the buffer might be empty, which means you should not make an assumption that the buffer contains at least one byte in your decoder implementation.
        state - the current decoder state (null if unused)
        Returns:
        the decoded frame
        Throws:
        java.lang.Exception