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             super();
    211         }
    212     }
    213
    214     /**
    215      * Standard RTSP header values.
    216      */
    217     public static final class Values {
    218         /**
    219          * {@code "append"}
    220          */
    221         public static final String APPEND = "append";
    222         /**
    223          * {@code "AVP"}
    224          */
    225         public static final String AVP = "AVP";
    226         /**
    227          * {@code "bytes"}
    228          */
    229         public static final String BYTES = HttpHeaders.Values.BYTES;
    230         /**
    231          * {@code "charset"}
    232          */
    233         public static final String CHARSET = HttpHeaders.Values.CHARSET;
    234         /**
    235          * {@code "client_port"}
    236          */
    237         public static final String CLIENT_PORT = "client_port";
    238         /**
    239          * {@code "clock"}
    240          */
    241         public static final String CLOCK = "clock";
    242         /**
    243          * {@code "close"}
    244          */
    245         public static final String CLOSE = HttpHeaders.Values.CLOSE;
    246         /**
    247          * {@code "compress"}
    248          */
    249         public static final String COMPRESS = HttpHeaders.Values.COMPRESS;
    250         /**
    251          * {@code "100-continue"}
    252          */
    253         public static final String CONTINUE =  HttpHeaders.Values.CONTINUE;
    254         /**
    255          * {@code "deflate"}
    256          */
    257         public static final String DEFLATE = HttpHeaders.Values.DEFLATE;
    258         /**
    259          * {@code "destination"}
    260          */
    261         public static final String DESTINATION = "destination";
    262         /**
    263          * {@code "gzip"}
    264          */
    265         public static final String GZIP = HttpHeaders.Values.GZIP;
    266         /**
    267          * {@code "identity"}
    268          */
    269         public static final String IDENTITY = HttpHeaders.Values.IDENTITY;
    270         /**
    271          * {@code "interleaved"}
    272          */
    273         public static final String INTERLEAVED = "interleaved";
    274         /**
    275          * {@code "keep-alive"}
    276          */
    277         public static final String KEEP_ALIVE = HttpHeaders.Values.KEEP_ALIVE;
    278         /**
    279          * {@code "layers"}
    280          */
    281         public static final String LAYERS = "layers";
    282         /**
    283          * {@code "max-age"}
    284          */
    285         public static final String MAX_AGE = HttpHeaders.Values.MAX_AGE;
    286         /**
    287          * {@code "max-stale"}
    288          */
    289         public static final String MAX_STALE = HttpHeaders.Values.MAX_STALE;
    290         /**
    291          * {@code "min-fresh"}
    292          */
    293         public static final String MIN_FRESH = HttpHeaders.Values.MIN_FRESH;
    294         /**
    295          * {@code "mode"}
    296          */
    297         public static final String MODE = "mode";
    298         /**
    299          * {@code "multicast"}
    300          */
    301         public static final String MULTICAST = "multicast";
    302         /**
    303          * {@code "must-revalidate"}
    304          */
    305         public static final String MUST_REVALIDATE = HttpHeaders.Values.MUST_REVALIDATE;
    306         /**
    307          * {@code "none"}
    308          */
    309         public static final String NONE = HttpHeaders.Values.NONE;
    310         /**
    311          * {@code "no-cache"}
    312          */
    313         public static final String NO_CACHE = HttpHeaders.Values.NO_CACHE;
    314         /**
    315          * {@code "no-transform"}
    316          */
    317         public static final String NO_TRANSFORM = HttpHeaders.Values.NO_TRANSFORM;
    318         /**
    319          * {@code "only-if-cached"}
    320          */
    321         public static final String ONLY_IF_CACHED = HttpHeaders.Values.ONLY_IF_CACHED;
    322         /**
    323          * {@code "port"}
    324          */
    325         public static final String PORT = "port";
    326         /**
    327          * {@code "private"}
    328          */
    329         public static final String PRIVATE = HttpHeaders.Values.PRIVATE;
    330         /**
    331          * {@code "proxy-revalidate"}
    332          */
    333         public static final String PROXY_REVALIDATE = HttpHeaders.Values.PROXY_REVALIDATE;
    334         /**
    335          * {@code "public"}
    336          */
    337         public static final String PUBLIC = HttpHeaders.Values.PUBLIC;
    338         /**
    339          * {@code "RTP"}
    340          */
    341         public static final String RTP = "RTP";
    342         /**
    343          * {@code "rtptime"}
    344          */
    345         public static final String RTPTIME = "rtptime";
    346         /**
    347          * {@code "seq"}
    348          */
    349         public static final String SEQ = "seq";
    350         /**
    351          * {@code "server_port"}
    352          */
    353         public static final String SERVER_PORT = "server_port";
    354         /**
    355          * {@code "ssrc"}
    356          */
    357         public static final String SSRC = "ssrc";
    358         /**
    359          * {@code "TCP"}
    360          */
    361         public static final String TCP = "TCP";
    362         /**
    363          * {@code "time"}
    364          */
    365         public static final String TIME = "time";
    366         /**
    367          * {@code "timeout"}
    368          */
    369         public static final String TIMEOUT = "timeout";
    370         /**
    371          * {@code "ttl"}
    372          */
    373         public static final String TTL = "ttl";
    374         /**
    375          * {@code "UDP"}
    376          */
    377         public static final String UDP = "UDP";
    378         /**
    379          * {@code "unicast"}
    380          */
    381         public static final String UNICAST = "unicast";
    382         /**
    383          * {@code "url"}
    384          */
    385         public static final String URL = "url";
    386
    387         protected Values() {
    388             super();
    389         }
    390     }
    391
    392     private RtspHeaders() {
    393         super();
    394     }
    395 }