Class RtspDecoder

    • Field Detail

      • DEFAULT_MAX_CONTENT_LENGTH

        public static final int DEFAULT_MAX_CONTENT_LENGTH
        Constant for default max content length.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RtspDecoder

        public RtspDecoder()
        Creates a new instance with the default maxInitialLineLength (4096), maxHeaderSize (8192), and maxContentLength (8192).
      • RtspDecoder

        public RtspDecoder​(int maxInitialLineLength,
                           int maxHeaderSize,
                           int maxContentLength)
        Creates a new instance with the specified parameters.
        Parameters:
        maxInitialLineLength - The max allowed length of initial line
        maxHeaderSize - The max allowed size of header
        maxContentLength - The max allowed content length
      • RtspDecoder

        @Deprecated
        public RtspDecoder​(int maxInitialLineLength,
                           int maxHeaderSize,
                           int maxContentLength,
                           boolean validateHeaders)
        Deprecated.
        Use the RtspDecoder(HttpDecoderConfig) constructor instead, or the RtspDecoder(int, int, int) to always enable header validation.
        Creates a new instance with the specified parameters.
        Parameters:
        maxInitialLineLength - The max allowed length of initial line
        maxHeaderSize - The max allowed size of header
        maxContentLength - The max allowed content length
        validateHeaders - Set to true if headers should be validated
      • RtspDecoder

        public RtspDecoder​(HttpDecoderConfig config)
        Creates a new instance with the specified configuration.