001    /**
002     * Copyright (c) 2000-2013 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            public static final String X_REQUESTED_WITH = "X-Requested-With";
079    
080            // Values
081    
082            public static final String ACCEPT_RANGES_BYTES_VALUE = "bytes";
083    
084            public static final String CONNECTION_CLOSE_VALUE = "close";
085    
086            public static final String CACHE_CONTROL_DEFAULT_VALUE =
087                    "max-age=315360000, public";
088    
089            public static final String CACHE_CONTROL_NO_CACHE_VALUE =
090                    "private, no-cache, no-store, must-revalidate";
091    
092            public static final String CACHE_CONTROL_PRIVATE_VALUE = "private";
093    
094            public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
095    
096            /**
097             * @deprecated Use <code>CONNECTION_CLOSE_VALUE</code>.
098             */
099            public static final String CLOSE = CONNECTION_CLOSE_VALUE;
100    
101            public static final String CONTENT_DISPOSITION_ATTACHMENT = "attachment";
102    
103            public static final String CONTENT_DISPOSITION_INLINE = "inline";
104    
105            public static final String EXPIRES_DEFAULT_VALUE = "315360000";
106    
107            public static final String PRAGMA_NO_CACHE_VALUE = "no-cache";
108    
109            public static final String PRAGMA_PUBLIC_VALUE = "public";
110    
111            /**
112             * @deprecated Use <code>CACHE_CONTROL_PUBLIC_VALUE</code>.
113             */
114            public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
115    
116            public static final String XML_HTTP_REQUEST = "XMLHttpRequest";
117    
118    }