View Javadoc

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