View Javadoc
1   /*
2    * Copyright 2012 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    *   http://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  package io.netty.handler.codec.rtsp;
17  
18  import io.netty.handler.codec.http.HttpHeaders;
19  
20  
21  /**
22   * Standard RTSP header names and values.
23   */
24  public final class RtspHeaders {
25  
26      /**
27       * Standard RTSP header names.
28       */
29      public static final class Names {
30          /**
31           * {@code "Accept"}
32           */
33          public static final String ACCEPT = HttpHeaders.Names.ACCEPT;
34          /**
35           * {@code "Accept-Encoding"}
36           */
37          public static final String ACCEPT_ENCODING = HttpHeaders.Names.ACCEPT_ENCODING;
38          /**
39           * {@code "Accept-Language"}
40           */
41          public static final String ACCEPT_LANGUAGE = HttpHeaders.Names.ACCEPT_LANGUAGE;
42          /**
43           * {@code "Allow"}
44           */
45          public static final String ALLOW = "Allow";
46          /**
47           * {@code "Authorization"}
48           */
49          public static final String AUTHORIZATION = HttpHeaders.Names.AUTHORIZATION;
50          /**
51           * {@code "Bandwidth"}
52           */
53          public static final String BANDWIDTH = "Bandwidth";
54          /**
55           * {@code "Blocksize"}
56           */
57          public static final String BLOCKSIZE = "Blocksize";
58          /**
59           * {@code "Cache-Control"}
60           */
61          public static final String CACHE_CONTROL = HttpHeaders.Names.CACHE_CONTROL;
62          /**
63           * {@code "Conference"}
64           */
65          public static final String CONFERENCE = "Conference";
66          /**
67           * {@code "Connection"}
68           */
69          public static final String CONNECTION = HttpHeaders.Names.CONNECTION;
70          /**
71           * {@code "Content-Base"}
72           */
73          public static final String CONTENT_BASE = HttpHeaders.Names.CONTENT_BASE;
74          /**
75           * {@code "Content-Encoding"}
76           */
77          public static final String CONTENT_ENCODING = HttpHeaders.Names.CONTENT_ENCODING;
78          /**
79           * {@code "Content-Language"}
80           */
81          public static final String CONTENT_LANGUAGE = HttpHeaders.Names.CONTENT_LANGUAGE;
82          /**
83           * {@code "Content-Length"}
84           */
85          public static final String CONTENT_LENGTH = HttpHeaders.Names.CONTENT_LENGTH;
86          /**
87           * {@code "Content-Location"}
88           */
89          public static final String CONTENT_LOCATION = HttpHeaders.Names.CONTENT_LOCATION;
90          /**
91           * {@code "Content-Type"}
92           */
93          public static final String CONTENT_TYPE = HttpHeaders.Names.CONTENT_TYPE;
94          /**
95           * {@code "CSeq"}
96           */
97          public static final String CSEQ = "CSeq";
98          /**
99           * {@code "Date"}
100          */
101         public static final String DATE = HttpHeaders.Names.DATE;
102         /**
103          * {@code "Expires"}
104          */
105         public static final String EXPIRES = HttpHeaders.Names.EXPIRES;
106         /**
107          * {@code "From"}
108          */
109         public static final String FROM = HttpHeaders.Names.FROM;
110         /**
111          * {@code "Host"}
112          */
113         public static final String HOST = HttpHeaders.Names.HOST;
114         /**
115          * {@code "If-Match"}
116          */
117         public static final String IF_MATCH = HttpHeaders.Names.IF_MATCH;
118         /**
119          * {@code "If-Modified-Since"}
120          */
121         public static final String IF_MODIFIED_SINCE = HttpHeaders.Names.IF_MODIFIED_SINCE;
122         /**
123          * {@code "KeyMgmt"}
124          */
125         public static final String KEYMGMT = "KeyMgmt";
126         /**
127          * {@code "Last-Modified"}
128          */
129         public static final String LAST_MODIFIED = HttpHeaders.Names.LAST_MODIFIED;
130         /**
131          * {@code "Proxy-Authenticate"}
132          */
133         public static final String PROXY_AUTHENTICATE = HttpHeaders.Names.PROXY_AUTHENTICATE;
134         /**
135          * {@code "Proxy-Require"}
136          */
137         public static final String PROXY_REQUIRE = "Proxy-Require";
138         /**
139          * {@code "Public"}
140          */
141         public static final String PUBLIC = "Public";
142         /**
143          * {@code "Range"}
144          */
145         public static final String RANGE = HttpHeaders.Names.RANGE;
146         /**
147          * {@code "Referer"}
148          */
149         public static final String REFERER = HttpHeaders.Names.REFERER;
150         /**
151          * {@code "Require"}
152          */
153         public static final String REQUIRE = "Require";
154         /**
155          * {@code "Retry-After"}
156          */
157         public static final String RETRT_AFTER = HttpHeaders.Names.RETRY_AFTER;
158         /**
159          * {@code "RTP-Info"}
160          */
161         public static final String RTP_INFO = "RTP-Info";
162         /**
163          * {@code "Scale"}
164          */
165         public static final String SCALE = "Scale";
166         /**
167          * {@code "Session"}
168          */
169         public static final String SESSION = "Session";
170         /**
171          * {@code "Server"}
172          */
173         public static final String SERVER = HttpHeaders.Names.SERVER;
174         /**
175          * {@code "Speed"}
176          */
177         public static final String SPEED = "Speed";
178         /**
179          * {@code "Timestamp"}
180          */
181         public static final String TIMESTAMP = "Timestamp";
182         /**
183          * {@code "Transport"}
184          */
185         public static final String TRANSPORT = "Transport";
186         /**
187          * {@code "Unsupported"}
188          */
189         public static final String UNSUPPORTED = "Unsupported";
190         /**
191          * {@code "User-Agent"}
192          */
193         public static final String USER_AGENT = HttpHeaders.Names.USER_AGENT;
194         /**
195          * {@code "Vary"}
196          */
197         public static final String VARY = HttpHeaders.Names.VARY;
198         /**
199          * {@code "Via"}
200          */
201         public static final String VIA = HttpHeaders.Names.VIA;
202         /**
203          * {@code "WWW-Authenticate"}
204          */
205         public static final String WWW_AUTHENTICATE = HttpHeaders.Names.WWW_AUTHENTICATE;
206 
207         private Names() {
208         }
209     }
210 
211     /**
212      * Standard RTSP header values.
213      */
214     public static final class Values {
215         /**
216          * {@code "append"}
217          */
218         public static final String APPEND = "append";
219         /**
220          * {@code "AVP"}
221          */
222         public static final String AVP = "AVP";
223         /**
224          * {@code "bytes"}
225          */
226         public static final String BYTES = HttpHeaders.Values.BYTES;
227         /**
228          * {@code "charset"}
229          */
230         public static final String CHARSET = HttpHeaders.Values.CHARSET;
231         /**
232          * {@code "client_port"}
233          */
234         public static final String CLIENT_PORT = "client_port";
235         /**
236          * {@code "clock"}
237          */
238         public static final String CLOCK = "clock";
239         /**
240          * {@code "close"}
241          */
242         public static final String CLOSE = HttpHeaders.Values.CLOSE;
243         /**
244          * {@code "compress"}
245          */
246         public static final String COMPRESS = HttpHeaders.Values.COMPRESS;
247         /**
248          * {@code "100-continue"}
249          */
250         public static final String CONTINUE =  HttpHeaders.Values.CONTINUE;
251         /**
252          * {@code "deflate"}
253          */
254         public static final String DEFLATE = HttpHeaders.Values.DEFLATE;
255         /**
256          * {@code "destination"}
257          */
258         public static final String DESTINATION = "destination";
259         /**
260          * {@code "gzip"}
261          */
262         public static final String GZIP = HttpHeaders.Values.GZIP;
263         /**
264          * {@code "identity"}
265          */
266         public static final String IDENTITY = HttpHeaders.Values.IDENTITY;
267         /**
268          * {@code "interleaved"}
269          */
270         public static final String INTERLEAVED = "interleaved";
271         /**
272          * {@code "keep-alive"}
273          */
274         public static final String KEEP_ALIVE = HttpHeaders.Values.KEEP_ALIVE;
275         /**
276          * {@code "layers"}
277          */
278         public static final String LAYERS = "layers";
279         /**
280          * {@code "max-age"}
281          */
282         public static final String MAX_AGE = HttpHeaders.Values.MAX_AGE;
283         /**
284          * {@code "max-stale"}
285          */
286         public static final String MAX_STALE = HttpHeaders.Values.MAX_STALE;
287         /**
288          * {@code "min-fresh"}
289          */
290         public static final String MIN_FRESH = HttpHeaders.Values.MIN_FRESH;
291         /**
292          * {@code "mode"}
293          */
294         public static final String MODE = "mode";
295         /**
296          * {@code "multicast"}
297          */
298         public static final String MULTICAST = "multicast";
299         /**
300          * {@code "must-revalidate"}
301          */
302         public static final String MUST_REVALIDATE = HttpHeaders.Values.MUST_REVALIDATE;
303         /**
304          * {@code "none"}
305          */
306         public static final String NONE = HttpHeaders.Values.NONE;
307         /**
308          * {@code "no-cache"}
309          */
310         public static final String NO_CACHE = HttpHeaders.Values.NO_CACHE;
311         /**
312          * {@code "no-transform"}
313          */
314         public static final String NO_TRANSFORM = HttpHeaders.Values.NO_TRANSFORM;
315         /**
316          * {@code "only-if-cached"}
317          */
318         public static final String ONLY_IF_CACHED = HttpHeaders.Values.ONLY_IF_CACHED;
319         /**
320          * {@code "port"}
321          */
322         public static final String PORT = "port";
323         /**
324          * {@code "private"}
325          */
326         public static final String PRIVATE = HttpHeaders.Values.PRIVATE;
327         /**
328          * {@code "proxy-revalidate"}
329          */
330         public static final String PROXY_REVALIDATE = HttpHeaders.Values.PROXY_REVALIDATE;
331         /**
332          * {@code "public"}
333          */
334         public static final String PUBLIC = HttpHeaders.Values.PUBLIC;
335         /**
336          * {@code "RTP"}
337          */
338         public static final String RTP = "RTP";
339         /**
340          * {@code "rtptime"}
341          */
342         public static final String RTPTIME = "rtptime";
343         /**
344          * {@code "seq"}
345          */
346         public static final String SEQ = "seq";
347         /**
348          * {@code "server_port"}
349          */
350         public static final String SERVER_PORT = "server_port";
351         /**
352          * {@code "ssrc"}
353          */
354         public static final String SSRC = "ssrc";
355         /**
356          * {@code "TCP"}
357          */
358         public static final String TCP = "TCP";
359         /**
360          * {@code "time"}
361          */
362         public static final String TIME = "time";
363         /**
364          * {@code "timeout"}
365          */
366         public static final String TIMEOUT = "timeout";
367         /**
368          * {@code "ttl"}
369          */
370         public static final String TTL = "ttl";
371         /**
372          * {@code "UDP"}
373          */
374         public static final String UDP = "UDP";
375         /**
376          * {@code "unicast"}
377          */
378         public static final String UNICAST = "unicast";
379         /**
380          * {@code "url"}
381          */
382         public static final String URL = "url";
383 
384         private Values() { }
385     }
386 
387     private RtspHeaders() { }
388 }