1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.kernel.servlet;
24  
25  /**
26   * <a href="HttpHeaders.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface HttpHeaders {
32  
33      // Names
34  
35      public static final String ACCEPT = "ACCEPT";
36  
37      public static final String ACCEPT_ENCODING = "Accept-Encoding";
38  
39      public static final String AUTHORIZATION = "Authorization";
40  
41      public static final String CACHE_CONTROL = "Cache-Control";
42  
43      public static final String CONNECTION = "Connection";
44  
45      public static final String CONTENT_DISPOSITION = "Content-Disposition";
46  
47      public static final String CONTENT_ENCODING = "Content-Encoding";
48  
49      public static final String CONTENT_ID = "Content-ID";
50  
51      public static final String CONTENT_TYPE = "Content-Type";
52  
53      public static final String EXPIRES = "Expires";
54  
55      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
56  
57      public static final String KEEP_ALIVE = "Keep-Alive";
58  
59      public static final String LAST_MODIFIED = "Last-Modified";
60  
61      public static final String LOCATION = "Location";
62  
63      public static final String PRAGMA = "Pragma";
64  
65      public static final String USER_AGENT = "User-Agent";
66  
67      public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
68  
69      // Values
70  
71      public static final String CONNECTION_CLOSE_VALUE = "close";
72  
73      public static final String CACHE_CONTROL_DEFAULT_VALUE =
74          "max-age=315360000, public";
75  
76      public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
77  
78      /**
79       * @deprecated Use <code>CONNECTION_CLOSE_VALUE</code>.
80       */
81      public static final String CLOSE = CONNECTION_CLOSE_VALUE;
82  
83      public static final String EXPIRES_DEFAULT_VALUE = "315360000";
84  
85      public static final String PRAGMA_PUBLIC_VALUE = "public";
86  
87      /**
88       * @deprecated Use <code>CACHE_CONTROL_PUBLIC_VALUE</code>.
89       */
90      public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
91  
92  }