1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.kernel.servlet;
21  
22  /**
23   * <a href="HttpHeaders.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public interface HttpHeaders {
29  
30      // Names
31  
32      public static final String ACCEPT = "ACCEPT";
33  
34      public static final String ACCEPT_ENCODING = "Accept-Encoding";
35  
36      public static final String AUTHORIZATION = "Authorization";
37  
38      public static final String CACHE_CONTROL = "Cache-Control";
39  
40      public static final String CONNECTION = "Connection";
41  
42      public static final String CONTENT_DISPOSITION = "Content-Disposition";
43  
44      public static final String CONTENT_ENCODING = "Content-Encoding";
45  
46      public static final String CONTENT_ID = "Content-ID";
47  
48      public static final String CONTENT_TYPE = "Content-Type";
49  
50      public static final String EXPIRES = "Expires";
51  
52      public static final String ETAG = "ETag";
53  
54      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
55  
56      public static final String IF_NONE_MATCH = "If-None-Match";
57  
58      public static final String KEEP_ALIVE = "Keep-Alive";
59  
60      public static final String LAST_MODIFIED = "Last-Modified";
61  
62      public static final String LOCATION = "Location";
63  
64      public static final String PRAGMA = "Pragma";
65  
66      public static final String USER_AGENT = "User-Agent";
67  
68      public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
69  
70      // Values
71  
72      public static final String CONNECTION_CLOSE_VALUE = "close";
73  
74      public static final String CACHE_CONTROL_DEFAULT_VALUE =
75          "max-age=315360000, public";
76  
77      public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
78  
79      /**
80       * @deprecated Use <code>CONNECTION_CLOSE_VALUE</code>.
81       */
82      public static final String CLOSE = CONNECTION_CLOSE_VALUE;
83  
84      public static final String EXPIRES_DEFAULT_VALUE = "315360000";
85  
86      public static final String PRAGMA_PUBLIC_VALUE = "public";
87  
88      /**
89       * @deprecated Use <code>CACHE_CONTROL_PUBLIC_VALUE</code>.
90       */
91      public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
92  
93  }