View Javadoc
1   /*
2    * Copyright 2014 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   https://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  
17  package io.netty5.handler.codec.rtsp;
18  
19  import io.netty5.handler.codec.http.HttpHeaderNames;
20  import io.netty5.util.AsciiString;
21  
22  /**
23   * Standard RTSP header names.
24   * <p>
25   * These are all defined as lowercase to support HTTP/2 requirements while also not
26   * violating RTSP/1.x requirements.  New header names should always be lowercase.
27   */
28  public final class RtspHeaderNames {
29      /**
30       * {@code "accept"}
31       */
32      public static final AsciiString ACCEPT = HttpHeaderNames.ACCEPT;
33      /**
34       * {@code "accept-encoding"}
35       */
36      public static final AsciiString ACCEPT_ENCODING = HttpHeaderNames.ACCEPT_ENCODING;
37      /**
38       * {@code "accept-language"}
39       */
40      public static final AsciiString ACCEPT_LANGUAGE = HttpHeaderNames.ACCEPT_LANGUAGE;
41      /**
42       * {@code "allow"}
43       */
44      public static final AsciiString ALLOW = AsciiString.cached("allow");
45      /**
46       * {@code "authorization"}
47       */
48      public static final AsciiString AUTHORIZATION = HttpHeaderNames.AUTHORIZATION;
49      /**
50       * {@code "bandwidth"}
51       */
52      public static final AsciiString BANDWIDTH = AsciiString.cached("bandwidth");
53      /**
54       * {@code "blocksize"}
55       */
56      public static final AsciiString BLOCKSIZE = AsciiString.cached("blocksize");
57      /**
58       * {@code "cache-control"}
59       */
60      public static final AsciiString CACHE_CONTROL = HttpHeaderNames.CACHE_CONTROL;
61      /**
62       * {@code "conference"}
63       */
64      public static final AsciiString CONFERENCE = AsciiString.cached("conference");
65      /**
66       * {@code "connection"}
67       */
68      public static final AsciiString CONNECTION = HttpHeaderNames.CONNECTION;
69      /**
70       * {@code "content-base"}
71       */
72      public static final AsciiString CONTENT_BASE = HttpHeaderNames.CONTENT_BASE;
73      /**
74       * {@code "content-encoding"}
75       */
76      public static final AsciiString CONTENT_ENCODING = HttpHeaderNames.CONTENT_ENCODING;
77      /**
78       * {@code "content-language"}
79       */
80      public static final AsciiString CONTENT_LANGUAGE = HttpHeaderNames.CONTENT_LANGUAGE;
81      /**
82       * {@code "content-length"}
83       */
84      public static final AsciiString CONTENT_LENGTH = HttpHeaderNames.CONTENT_LENGTH;
85      /**
86       * {@code "content-location"}
87       */
88      public static final AsciiString CONTENT_LOCATION = HttpHeaderNames.CONTENT_LOCATION;
89      /**
90       * {@code "content-type"}
91       */
92      public static final AsciiString CONTENT_TYPE = HttpHeaderNames.CONTENT_TYPE;
93      /**
94       * {@code "cseq"}
95       */
96      public static final AsciiString CSEQ = AsciiString.cached("cseq");
97      /**
98       * {@code "date"}
99       */
100     public static final AsciiString DATE = HttpHeaderNames.DATE;
101     /**
102      * {@code "expires"}
103      */
104     public static final AsciiString EXPIRES = HttpHeaderNames.EXPIRES;
105     /**
106      * {@code "from"}
107      */
108     public static final AsciiString FROM = HttpHeaderNames.FROM;
109     /**
110      * {@code "host"}
111      */
112     public static final AsciiString HOST = HttpHeaderNames.HOST;
113     /**
114      * {@code "if-match"}
115      */
116     public static final AsciiString IF_MATCH = HttpHeaderNames.IF_MATCH;
117     /**
118      * {@code "if-modified-since"}
119      */
120     public static final AsciiString IF_MODIFIED_SINCE = HttpHeaderNames.IF_MODIFIED_SINCE;
121     /**
122      * {@code "keymgmt"}
123      */
124     public static final AsciiString KEYMGMT = AsciiString.cached("keymgmt");
125     /**
126      * {@code "last-modified"}
127      */
128     public static final AsciiString LAST_MODIFIED = HttpHeaderNames.LAST_MODIFIED;
129     /**
130      * {@code "proxy-authenticate"}
131      */
132     public static final AsciiString PROXY_AUTHENTICATE = HttpHeaderNames.PROXY_AUTHENTICATE;
133     /**
134      * {@code "proxy-require"}
135      */
136     public static final AsciiString PROXY_REQUIRE = AsciiString.cached("proxy-require");
137     /**
138      * {@code "public"}
139      */
140     public static final AsciiString PUBLIC = AsciiString.cached("public");
141     /**
142      * {@code "range"}
143      */
144     public static final AsciiString RANGE = HttpHeaderNames.RANGE;
145     /**
146      * {@code "referer"}
147      */
148     public static final AsciiString REFERER = HttpHeaderNames.REFERER;
149     /**
150      * {@code "require"}
151      */
152     public static final AsciiString REQUIRE = AsciiString.cached("require");
153     /**
154      * {@code "retry-after"}
155      */
156     public static final AsciiString RETRT_AFTER = HttpHeaderNames.RETRY_AFTER;
157     /**
158      * {@code "rtp-info"}
159      */
160     public static final AsciiString RTP_INFO = AsciiString.cached("rtp-info");
161     /**
162      * {@code "scale"}
163      */
164     public static final AsciiString SCALE = AsciiString.cached("scale");
165     /**
166      * {@code "session"}
167      */
168     public static final AsciiString SESSION = AsciiString.cached("session");
169     /**
170      * {@code "server"}
171      */
172     public static final AsciiString SERVER = HttpHeaderNames.SERVER;
173     /**
174      * {@code "speed"}
175      */
176     public static final AsciiString SPEED = AsciiString.cached("speed");
177     /**
178      * {@code "timestamp"}
179      */
180     public static final AsciiString TIMESTAMP = AsciiString.cached("timestamp");
181     /**
182      * {@code "transport"}
183      */
184     public static final AsciiString TRANSPORT = AsciiString.cached("transport");
185     /**
186      * {@code "unsupported"}
187      */
188     public static final AsciiString UNSUPPORTED = AsciiString.cached("unsupported");
189     /**
190      * {@code "user-agent"}
191      */
192     public static final AsciiString USER_AGENT = HttpHeaderNames.USER_AGENT;
193     /**
194      * {@code "vary"}
195      */
196     public static final AsciiString VARY = HttpHeaderNames.VARY;
197     /**
198      * {@code "via"}
199      */
200     public static final AsciiString VIA = HttpHeaderNames.VIA;
201     /**
202      * {@code "www-authenticate"}
203      */
204     public static final AsciiString WWW_AUTHENTICATE = HttpHeaderNames.WWW_AUTHENTICATE;
205 
206     private RtspHeaderNames() { }
207 }