GeezerVison is showing netty.io — RtspDecoder (Netty API Reference (4.1.141.Final))
Class RtspDecoder
-
-
Field Summary
Fields
Modifier and Type
Field
Description
static final int
Constant for default max content length.
DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHS, DEFAULT_ALLOW_PARTIAL_CHUNKS, DEFAULT_CHUNKED_SUPPORTED, DEFAULT_INITIAL_BUFFER_SIZE, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_STRICT_LINE_PARSING, DEFAULT_VALIDATE_HEADERS, headersFactory, PROP_RFC9112_TRANSFER_ENCODING, RFC9112_TRANSFER_ENCODING, trailersFactory, validateHeaders
Modifier and Type
Field
Description
static final boolean
static final boolean
static final boolean
static final int
static final int
static final int
static final int
static final boolean
static final boolean
static final boolean
protected final boolean
-
Constructor Summary
Constructors
Constructor
Description
Creates a new instance with the default
maxInitialLineLength (4096), maxHeaderSize (8192), and
maxContentLength (8192).
RtspDecoder(int maxInitialLineLength,
int maxHeaderSize,
int maxContentLength)
Creates a new instance with the specified parameters.
RtspDecoder(int maxInitialLineLength,
int maxHeaderSize,
int maxContentLength,
boolean validateHeaders)
Creates a new instance with the specified configuration.
-
Method Summary
Modifier and Type
Method
Description
protected boolean
protected boolean
clearContentLength, decode, decodeLast, handlerRemoved0, handleTransferEncodingChunkedWithContentLength, isSwitchingToNonHttp1Protocol, isValidating, reset, splitFirstWordInitialLine, splitHeaderName, splitSecondWordInitialLine, splitThirdWordInitialLine, userEventTriggered
Modifier and Type
Method
Description
protected final void
protected void
Decode the from one ByteBuf to an other.
protected void
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
protected void
Invoked when a message with both a "Transfer-Encoding: chunked" and a "Content-Length" header field is detected.
protected boolean
Returns true if the server switched to a different protocol than HTTP/1.0 or HTTP/1.1, e.g.
protected boolean
void
Resets the state of the decoder so that it is ready to decode a new message.
void
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
protected void
Called once data should be decoded from the given ByteBuf.
void
void
void
protected final void
final void
Do nothing by default, sub-classes may override this method.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEFAULT_MAX_CONTENT_LENGTH
public static final int DEFAULT_MAX_CONTENT_LENGTH
Constant for default max content length.
- See Also:
-
-
Constructor Details
-
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)
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
Creates a new instance with the specified configuration.
-
|