Home / Class/ RtspVersions Class — netty Architecture

RtspVersions Class — netty Architecture

Architecture documentation for the RtspVersions class in RtspVersions.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3b4ef5aa_1721_702c_39a2_ca15a5425d5a["RtspVersions"]
  b640a72e_bfe6_accc_b9df_b8c9e9356afb["RtspVersions.java"]
  3b4ef5aa_1721_702c_39a2_ca15a5425d5a -->|defined in| b640a72e_bfe6_accc_b9df_b8c9e9356afb
  aa5e2eb7_35fb_1e28_d9b1_e96876a17f5d["HttpVersion()"]
  3b4ef5aa_1721_702c_39a2_ca15a5425d5a -->|method| aa5e2eb7_35fb_1e28_d9b1_e96876a17f5d
  2a9dce46_9296_52c9_dc76_55bc363dfcfc["RtspVersions()"]
  3b4ef5aa_1721_702c_39a2_ca15a5425d5a -->|method| 2a9dce46_9296_52c9_dc76_55bc363dfcfc

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspVersions.java lines 24–50

public final class RtspVersions {

    /**
     * RTSP/1.0
     */
    public static final HttpVersion RTSP_1_0 = new HttpVersion("RTSP", 1, 0, true);

    /**
     * Returns an existing or new {@link HttpVersion} instance which matches to
     * the specified RTSP version string.  If the specified {@code text} is
     * equal to {@code "RTSP/1.0"}, {@link #RTSP_1_0} will be returned.
     * Otherwise, a new {@link HttpVersion} instance will be returned.
     */
    public static HttpVersion valueOf(String text) {
        ObjectUtil.checkNotNull(text, "text");

        text = text.trim().toUpperCase();
        if ("RTSP/1.0".equals(text)) {
            return RTSP_1_0;
        }

        return new HttpVersion(text, true);
    }

    private RtspVersions() {
    }
}

Frequently Asked Questions

What is the RtspVersions class?
RtspVersions is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspVersions.java.
Where is RtspVersions defined?
RtspVersions is defined in codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspVersions.java at line 24.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free