001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.servlet;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface HttpHeaders {
021    
022            // Names
023    
024            public static final String ACCEPT = "ACCEPT";
025    
026            public static final String ACCEPT_ENCODING = "Accept-Encoding";
027    
028            public static final String AUTHORIZATION = "Authorization";
029    
030            public static final String CACHE_CONTROL = "Cache-Control";
031    
032            public static final String COOKIE = "Cookie";
033    
034            public static final String CONNECTION = "Connection";
035    
036            public static final String CONTENT_DISPOSITION = "Content-Disposition";
037    
038            public static final String CONTENT_ENCODING = "Content-Encoding";
039    
040            public static final String CONTENT_ID = "Content-ID";
041    
042            public static final String CONTENT_LENGTH = "Content-Length";
043    
044            public static final String CONTENT_TYPE = "Content-Type";
045    
046            public static final String EXPIRES = "Expires";
047    
048            public static final String ETAG = "ETag";
049    
050            public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
051    
052            public static final String IF_NONE_MATCH = "If-None-Match";
053    
054            public static final String KEEP_ALIVE = "Keep-Alive";
055    
056            public static final String LAST_MODIFIED = "Last-Modified";
057    
058            public static final String LIFERAY_EMAIL_ADDRESS = "LIFERAY_EMAIL_ADDRESS";
059    
060            public static final String LIFERAY_SCREEN_NAME = "LIFERAY_SCREEN_NAME";
061    
062            public static final String LIFERAY_USER_ID = "LIFERAY_USER_ID";
063    
064            public static final String LOCATION = "Location";
065    
066            public static final String PRAGMA = "Pragma";
067    
068            public static final String USER_AGENT = "User-Agent";
069    
070            public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
071    
072            // Values
073    
074            public static final String CONNECTION_CLOSE_VALUE = "close";
075    
076            public static final String CACHE_CONTROL_DEFAULT_VALUE =
077                    "max-age=315360000, public";
078    
079            public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
080    
081            /**
082             * @deprecated Use <code>CONNECTION_CLOSE_VALUE</code>.
083             */
084            public static final String CLOSE = CONNECTION_CLOSE_VALUE;
085    
086            public static final String EXPIRES_DEFAULT_VALUE = "315360000";
087    
088            public static final String PRAGMA_PUBLIC_VALUE = "public";
089    
090            /**
091             * @deprecated Use <code>CACHE_CONTROL_PUBLIC_VALUE</code>.
092             */
093            public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
094    
095    }