View Javadoc
1   /*
2    * ====================================================================
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   * ====================================================================
20   *
21   * This software consists of voluntary contributions made by many
22   * individuals on behalf of the Apache Software Foundation.  For more
23   * information on the Apache Software Foundation, please see
24   * <http://www.apache.org/>.
25   *
26   */
27  
28  package org.apache.http;
29  
30  /**
31   * Constants enumerating the HTTP headers. All headers defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518
32   * (WebDAV) are listed.
33   *
34   * @since 4.1
35   */
36  public final class HttpHeaders {
37  
38      private HttpHeaders() {
39          // Don't allow instantiation.
40      }
41  
42      /** RFC 2616 (HTTP/1.1) Section 14.1 */
43      public static final String ACCEPT = "Accept";
44  
45      /** RFC 2616 (HTTP/1.1) Section 14.2 */
46      public static final String ACCEPT_CHARSET = "Accept-Charset";
47  
48      /** RFC 2616 (HTTP/1.1) Section 14.3 */
49      public static final String ACCEPT_ENCODING = "Accept-Encoding";
50  
51      /** RFC 2616 (HTTP/1.1) Section 14.4 */
52      public static final String ACCEPT_LANGUAGE = "Accept-Language";
53  
54      /** RFC 2616 (HTTP/1.1) Section 14.5 */
55      public static final String ACCEPT_RANGES = "Accept-Ranges";
56  
57      /** RFC 2616 (HTTP/1.1) Section 14.6 */
58      public static final String AGE = "Age";
59  
60      /** RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7 */
61      public static final String ALLOW = "Allow";
62  
63      /** RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8 */
64      public static final String AUTHORIZATION = "Authorization";
65  
66      /** RFC 2616 (HTTP/1.1) Section 14.9 */
67      public static final String CACHE_CONTROL = "Cache-Control";
68  
69      /** RFC 2616 (HTTP/1.1) Section 14.10 */
70      public static final String CONNECTION = "Connection";
71  
72      /** RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11 */
73      public static final String CONTENT_ENCODING = "Content-Encoding";
74  
75      /** RFC 2616 (HTTP/1.1) Section 14.12 */
76      public static final String CONTENT_LANGUAGE = "Content-Language";
77  
78      /** RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13 */
79      public static final String CONTENT_LENGTH = "Content-Length";
80  
81      /** RFC 2616 (HTTP/1.1) Section 14.14 */
82      public static final String CONTENT_LOCATION = "Content-Location";
83  
84      /** RFC 2616 (HTTP/1.1) Section 14.15 */
85      public static final String CONTENT_MD5 = "Content-MD5";
86  
87      /** RFC 2616 (HTTP/1.1) Section 14.16 */
88      public static final String CONTENT_RANGE = "Content-Range";
89  
90      /** RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17 */
91      public static final String CONTENT_TYPE = "Content-Type";
92  
93      /** RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18 */
94      public static final String DATE = "Date";
95  
96      /** RFC 2518 (WevDAV) Section 9.1 */
97      public static final String DAV = "Dav";
98  
99      /** RFC 2518 (WevDAV) Section 9.2 */
100     public static final String DEPTH = "Depth";
101 
102     /** RFC 2518 (WevDAV) Section 9.3 */
103     public static final String DESTINATION = "Destination";
104 
105     /** RFC 2616 (HTTP/1.1) Section 14.19 */
106     public static final String ETAG = "ETag";
107 
108     /** RFC 2616 (HTTP/1.1) Section 14.20 */
109     public static final String EXPECT = "Expect";
110 
111     /** RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21 */
112     public static final String EXPIRES = "Expires";
113 
114     /** RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22 */
115     public static final String FROM = "From";
116 
117     /** RFC 2616 (HTTP/1.1) Section 14.23 */
118     public static final String HOST = "Host";
119 
120     /** RFC 2518 (WevDAV) Section 9.4 */
121     public static final String IF = "If";
122 
123     /** RFC 2616 (HTTP/1.1) Section 14.24 */
124     public static final String IF_MATCH = "If-Match";
125 
126     /** RFC 1945 (HTTP/1.0) Section 10.9, RFC 2616 (HTTP/1.1) Section 14.25 */
127     public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
128 
129     /** RFC 2616 (HTTP/1.1) Section 14.26 */
130     public static final String IF_NONE_MATCH = "If-None-Match";
131 
132     /** RFC 2616 (HTTP/1.1) Section 14.27 */
133     public static final String IF_RANGE = "If-Range";
134 
135     /** RFC 2616 (HTTP/1.1) Section 14.28 */
136     public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
137 
138     /** RFC 1945 (HTTP/1.0) Section 10.10, RFC 2616 (HTTP/1.1) Section 14.29 */
139     public static final String LAST_MODIFIED = "Last-Modified";
140 
141     /** RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30 */
142     public static final String LOCATION = "Location";
143 
144     /** RFC 2518 (WevDAV) Section 9.5 */
145     public static final String LOCK_TOKEN = "Lock-Token";
146 
147     /** RFC 2616 (HTTP/1.1) Section 14.31 */
148     public static final String MAX_FORWARDS = "Max-Forwards";
149 
150     /** RFC 2518 (WevDAV) Section 9.6 */
151     public static final String OVERWRITE = "Overwrite";
152 
153     /** RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32 */
154     public static final String PRAGMA = "Pragma";
155 
156     /** RFC 2616 (HTTP/1.1) Section 14.33 */
157     public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
158 
159     /** RFC 2616 (HTTP/1.1) Section 14.34 */
160     public static final String PROXY_AUTHORIZATION = "Proxy-Authorization";
161 
162     /** RFC 2616 (HTTP/1.1) Section 14.35 */
163     public static final String RANGE = "Range";
164 
165     /** RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36 */
166     public static final String REFERER = "Referer";
167 
168     /** RFC 2616 (HTTP/1.1) Section 14.37 */
169     public static final String RETRY_AFTER = "Retry-After";
170 
171     /** RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38 */
172     public static final String SERVER = "Server";
173 
174     /** RFC 2518 (WevDAV) Section 9.7 */
175     public static final String STATUS_URI = "Status-URI";
176 
177     /** RFC 2616 (HTTP/1.1) Section 14.39 */
178     public static final String TE = "TE";
179 
180     /** RFC 2518 (WevDAV) Section 9.8 */
181     public static final String TIMEOUT = "Timeout";
182 
183     /** RFC 2616 (HTTP/1.1) Section 14.40 */
184     public static final String TRAILER = "Trailer";
185 
186     /** RFC 2616 (HTTP/1.1) Section 14.41 */
187     public static final String TRANSFER_ENCODING = "Transfer-Encoding";
188 
189     /** RFC 2616 (HTTP/1.1) Section 14.42 */
190     public static final String UPGRADE = "Upgrade";
191 
192     /** RFC 1945 (HTTP/1.0) Section 10.15, RFC 2616 (HTTP/1.1) Section 14.43 */
193     public static final String USER_AGENT = "User-Agent";
194 
195     /** RFC 2616 (HTTP/1.1) Section 14.44 */
196     public static final String VARY = "Vary";
197 
198     /** RFC 2616 (HTTP/1.1) Section 14.45 */
199     public static final String VIA = "Via";
200 
201     /** RFC 2616 (HTTP/1.1) Section 14.46 */
202     public static final String WARNING = "Warning";
203 
204     /** RFC 1945 (HTTP/1.0) Section 10.16, RFC 2616 (HTTP/1.1) Section 14.47 */
205     public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
206 
207 }