Class RtspDecoder

    • Field Detail

      • UNKNOWN_STATUS

        private static final HttpResponseStatus UNKNOWN_STATUS
        Status code for unknown responses.
      • isDecodingRequest

        private boolean isDecodingRequest
        True if the message to decode is a request. False if the message to decode is a response.
      • versionPattern

        private static final java.util.regex.Pattern versionPattern
        Regex used on first line in message to detect if it is a response.
      • 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.