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