Top Description Fields Constructors Methods
io.netty.handler.codec.rtsp

public abstract Class RtspObjectDecoder

extends HttpObjectDecoder
Class Inheritance
Annotations
@Deprecated
Imports
io.netty.buffer.ByteBuf, io.netty.handler.codec.TooLongFrameException, io.netty.handler.codec.http.HttpMessage, .HttpObjectDecoder

Deprecated

Use RtspDecoder instead.

Decodes ByteBufs into RTSP messages represented in HttpMessages.

Parameters that prevents excessive memory consumption

NameMeaning
maxInitialLineLength The maximum length of the initial line (e.g. "SETUP / RTSP/1.0" or "RTSP/1.0 200 OK") If the length of the initial line exceeds this value, a TooLongFrameException will be raised.
maxHeaderSize The maximum length of all headers. If the sum of the length of each header exceeds this value, a TooLongFrameException will be raised.
maxContentLength The maximum length of the content. If the content length exceeds this value, a TooLongFrameException will be raised.

Field Summary

Inherited from io.netty.handler.codec.http.HttpObjectDecoder:
DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHSDEFAULT_ALLOW_PARTIAL_CHUNKSDEFAULT_CHUNKED_SUPPORTEDDEFAULT_INITIAL_BUFFER_SIZEDEFAULT_MAX_CHUNK_SIZEDEFAULT_MAX_HEADER_SIZEDEFAULT_MAX_INITIAL_LINE_LENGTHDEFAULT_VALIDATE_HEADERSheadersFactorytrailersFactoryvalidateHeaders

Constructor Summary

AccessConstructor and Description
protected
RtspObjectDecoder()

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

protected
RtspObjectDecoder(int maxInitialLineLength, int maxHeaderSize, int maxContentLength)

Creates a new instance with the specified parameters.

protected
RtspObjectDecoder(int maxInitialLineLength, int maxHeaderSize, int maxContentLength, boolean validateHeaders)

Method Summary

Modifier and TypeMethod and Description
protected boolean
Inherited from io.netty.handler.codec.http.HttpObjectDecoder:
createInvalidMessagecreateMessagedecodedecodeLasthandlerRemoved0handleTransferEncodingChunkedWithContentLengthisDecodingRequestisSwitchingToNonHttp1ProtocolisValidatingresetsplitFirstWordInitialLinesplitHeaderNamesplitSecondWordInitialLinesplitThirdWordInitialLineuserEventTriggered

Constructor Detail

RtspObjectDecoderback to summary
protected RtspObjectDecoder()

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

RtspObjectDecoderback to summary
protected RtspObjectDecoder(int maxInitialLineLength, int maxHeaderSize, int maxContentLength)

Creates a new instance with the specified parameters.

RtspObjectDecoderback to summary
protected RtspObjectDecoder(int maxInitialLineLength, int maxHeaderSize, int maxContentLength, boolean validateHeaders)

Method Detail

isContentAlwaysEmptyback to summary
protected boolean isContentAlwaysEmpty(HttpMessage msg)

Overrides io.netty.handler.codec.http.HttpObjectDecoder.isContentAlwaysEmpty.

Annotations
@Override