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