001    /**
002     * Copyright (c) 2000-2012 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 ACCEPT_RANGES = "Accept-Ranges";
029    
030            public static final String AUTHORIZATION = "Authorization";
031    
032            public static final String CACHE_CONTROL = "Cache-Control";
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_RANGE = "Content-Range";
045    
046            public static final String CONTENT_TYPE = "Content-Type";
047    
048            public static final String COOKIE = "Cookie";
049    
050            public static final String ETAG = "ETag";
051    
052            public static final String EXPIRES = "Expires";
053    
054            public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
055    
056            public static final String IF_NONE_MATCH = "If-None-Match";
057    
058            public static final String KEEP_ALIVE = "Keep-Alive";
059    
060            public static final String LAST_MODIFIED = "Last-Modified";
061    
062            public static final String LIFERAY_EMAIL_ADDRESS = "LIFERAY_EMAIL_ADDRESS";
063    
064            public static final String LIFERAY_SCREEN_NAME = "LIFERAY_SCREEN_NAME";
065    
066            public static final String LIFERAY_USER_ID = "LIFERAY_USER_ID";
067    
068            public static final String LOCATION = "Location";
069    
070            public static final String PRAGMA = "Pragma";
071    
072            public static final String RANGE = "Range";
073    
074            public static final String USER_AGENT = "User-Agent";
075    
076            public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
077    
078            // Values
079    
080            public static final String ACCEPT_RANGES_BYTES_VALUE = "bytes";
081    
082            public static final String CONNECTION_CLOSE_VALUE = "close";
083    
084            public static final String CACHE_CONTROL_DEFAULT_VALUE =
085                    "max-age=315360000, public";
086    
087            public static final String CACHE_CONTROL_NO_CACHE_VALUE =
088                    "private, no-cache, no-store, must-revalidate";
089    
090            public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
091    
092            /**
093             * @deprecated Use <code>CONNECTION_CLOSE_VALUE</code>.
094             */
095            public static final String CLOSE = CONNECTION_CLOSE_VALUE;
096    
097            public static final String EXPIRES_DEFAULT_VALUE = "315360000";
098    
099            public static final String PRAGMA_NO_CACHE_VALUE = "no-cache";
100    
101            public static final String PRAGMA_PUBLIC_VALUE = "public";
102    
103            /**
104             * @deprecated Use <code>CACHE_CONTROL_PUBLIC_VALUE</code>.
105             */
106            public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
107    
108    }