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 COOKIE = "Cookie";
44  
45      public static final String CONNECTION = "Connection";
46  
47      public static final String CONTENT_DISPOSITION = "Content-Disposition";
48  
49      public static final String CONTENT_ENCODING = "Content-Encoding";
50  
51      public static final String CONTENT_ID = "Content-ID";
52  
53      public static final String CONTENT_LENGTH = "Content-Length";
54  
55      public static final String CONTENT_TYPE = "Content-Type";
56  
57      public static final String EXPIRES = "Expires";
58  
59      public static final String ETAG = "ETag";
60  
61      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
62  
63      public static final String IF_NONE_MATCH = "If-None-Match";
64  
65      public static final String KEEP_ALIVE = "Keep-Alive";
66  
67      public static final String LAST_MODIFIED = "Last-Modified";
68  
69      public static final String LIFERAY_EMAIL_ADDRESS = "LIFERAY_EMAIL_ADDRESS";
70  
71      public static final String LIFERAY_SCREEN_NAME = "LIFERAY_SCREEN_NAME";
72  
73      public static final String LIFERAY_USER_ID = "LIFERAY_USER_ID";
74  
75      public static final String LOCATION = "Location";
76  
77      public static final String PRAGMA = "Pragma";
78  
79      public static final String USER_AGENT = "User-Agent";
80  
81      public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
82  
83      // Values
84  
85      public static final String CONNECTION_CLOSE_VALUE = "close";
86  
87      public static final String CACHE_CONTROL_DEFAULT_VALUE =
88          "max-age=315360000, public";
89  
90      public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
91  
92      /**
93       * @deprecated Use <code>CONNECTION_CLOSE_VALUE</code>.
94       */
95      public static final String CLOSE = CONNECTION_CLOSE_VALUE;
96  
97      public static final String EXPIRES_DEFAULT_VALUE = "315360000";
98  
99      public static final String PRAGMA_PUBLIC_VALUE = "public";
100 
101     /**
102      * @deprecated Use <code>CACHE_CONTROL_PUBLIC_VALUE</code>.
103      */
104     public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
105 
106 }