1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  public interface HttpHeaders {
31  
32      // Names
33  
34      public static final String ACCEPT = "ACCEPT";
35  
36      public static final String ACCEPT_ENCODING = "Accept-Encoding";
37  
38      public static final String AUTHORIZATION = "Authorization";
39  
40      public static final String CACHE_CONTROL = "Cache-Control";
41  
42      public static final String COOKIE = "Cookie";
43  
44      public static final String CONNECTION = "Connection";
45  
46      public static final String CONTENT_DISPOSITION = "Content-Disposition";
47  
48      public static final String CONTENT_ENCODING = "Content-Encoding";
49  
50      public static final String CONTENT_ID = "Content-ID";
51  
52      public static final String CONTENT_LENGTH = "Content-Length";
53  
54      public static final String CONTENT_TYPE = "Content-Type";
55  
56      public static final String EXPIRES = "Expires";
57  
58      public static final String ETAG = "ETag";
59  
60      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
61  
62      public static final String IF_NONE_MATCH = "If-None-Match";
63  
64      public static final String KEEP_ALIVE = "Keep-Alive";
65  
66      public static final String LAST_MODIFIED = "Last-Modified";
67  
68      public static final String LIFERAY_EMAIL_ADDRESS = "LIFERAY_EMAIL_ADDRESS";
69  
70      public static final String LIFERAY_SCREEN_NAME = "LIFERAY_SCREEN_NAME";
71  
72      public static final String LIFERAY_USER_ID = "LIFERAY_USER_ID";
73  
74      public static final String LOCATION = "Location";
75  
76      public static final String PRAGMA = "Pragma";
77  
78      public static final String USER_AGENT = "User-Agent";
79  
80      public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
81  
82      // Values
83  
84      public static final String CONNECTION_CLOSE_VALUE = "close";
85  
86      public static final String CACHE_CONTROL_DEFAULT_VALUE =
87          "max-age=315360000, public";
88  
89      public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
90  
91      /**
92       * @deprecated Use <code>CONNECTION_CLOSE_VALUE</code>.
93       */
94      public static final String CLOSE = CONNECTION_CLOSE_VALUE;
95  
96      public static final String EXPIRES_DEFAULT_VALUE = "315360000";
97  
98      public static final String PRAGMA_PUBLIC_VALUE = "public";
99  
100     /**
101      * @deprecated Use <code>CACHE_CONTROL_PUBLIC_VALUE</code>.
102      */
103     public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
104 
105 }