RtspObjectDecoder Class — netty Architecture
Architecture documentation for the RtspObjectDecoder class in RtspObjectDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD be83f87f_f6c6_766c_476b_d4d601f5a67c["RtspObjectDecoder"] 7f81a2a3_bd83_c0db_556d_7a8b9685b34e["RtspObjectDecoder.java"] be83f87f_f6c6_766c_476b_d4d601f5a67c -->|defined in| 7f81a2a3_bd83_c0db_556d_7a8b9685b34e e19319d4_3057_268a_5376_863b11fbbc4b["RtspObjectDecoder()"] be83f87f_f6c6_766c_476b_d4d601f5a67c -->|method| e19319d4_3057_268a_5376_863b11fbbc4b 4cd7268c_cf57_799d_a613_cdb133243ab2["isContentAlwaysEmpty()"] be83f87f_f6c6_766c_476b_d4d601f5a67c -->|method| 4cd7268c_cf57_799d_a613_cdb133243ab2
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspObjectDecoder.java lines 55–92
@Deprecated
public abstract class RtspObjectDecoder extends HttpObjectDecoder {
/**
* Creates a new instance with the default
* {@code maxInitialLineLength (4096)}, {@code maxHeaderSize (8192)}, and
* {@code maxContentLength (8192)}.
*/
protected RtspObjectDecoder() {
this(DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_CONTENT_LENGTH);
}
/**
* Creates a new instance with the specified parameters.
*/
protected RtspObjectDecoder(int maxInitialLineLength, int maxHeaderSize, int maxContentLength) {
super(maxInitialLineLength, maxHeaderSize, maxContentLength * 2, false);
}
protected RtspObjectDecoder(
int maxInitialLineLength, int maxHeaderSize, int maxContentLength, boolean validateHeaders) {
super(maxInitialLineLength, maxHeaderSize, maxContentLength * 2, false, validateHeaders);
}
@Override
protected boolean isContentAlwaysEmpty(HttpMessage msg) {
// Unlike HTTP, RTSP always assumes zero-length body if Content-Length
// header is absent.
boolean empty = super.isContentAlwaysEmpty(msg);
if (empty) {
return true;
}
if (!msg.headers().contains(RtspHeaderNames.CONTENT_LENGTH)) {
return true;
}
return empty;
}
}
Source
Frequently Asked Questions
What is the RtspObjectDecoder class?
RtspObjectDecoder is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspObjectDecoder.java.
Where is RtspObjectDecoder defined?
RtspObjectDecoder is defined in codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspObjectDecoder.java at line 55.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free