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 SET_COOKIE = "Set-Cookie";
075    
076            public static final String USER_AGENT = "User-Agent";
077    
078            public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
079    
080            public static final String X_CONTENT_TYPE_OPTIONS =
081                    "X-Content-Type-Options";
082    
083            public static final String X_FORWARDED_FOR = "X-Forwarded-For";
084    
085            public static final String X_FRAME_OPTIONS = "X-Frame-Options";
086    
087            public static final String X_REQUESTED_WITH = "X-Requested-With";
088    
089            public static final String X_XSS_PROTECTION = "X-XSS-Protection";
090    
091            // Values
092    
093            public static final String ACCEPT_RANGES_BYTES_VALUE = "bytes";
094    
095            public static final String CONNECTION_CLOSE_VALUE = "close";
096    
097            public static final String CACHE_CONTROL_DEFAULT_VALUE =
098                    "max-age=315360000, public";
099    
100            public static final String CACHE_CONTROL_NO_CACHE_VALUE =
101                    "private, no-cache, no-store, must-revalidate";
102    
103            public static final String CACHE_CONTROL_PRIVATE_VALUE = "private";
104    
105            public static final String CACHE_CONTROL_PUBLIC_VALUE = "public";
106    
107            /**
108             * @deprecated As of 6.2.0, replaced by {@link #CONNECTION_CLOSE_VALUE}
109             */
110            public static final String CLOSE = CONNECTION_CLOSE_VALUE;
111    
112            public static final String CONTENT_DISPOSITION_ATTACHMENT = "attachment";
113    
114            public static final String CONTENT_DISPOSITION_INLINE = "inline";
115    
116            public static final String EXPIRES_DEFAULT_VALUE = "315360000";
117    
118            public static final String PRAGMA_NO_CACHE_VALUE = "no-cache";
119    
120            public static final String PRAGMA_PUBLIC_VALUE = "public";
121    
122            /**
123             * @deprecated As of 6.2.0, replaced by {@link #CACHE_CONTROL_PUBLIC_VALUE}
124             */
125            public static final String PUBLIC = CACHE_CONTROL_PUBLIC_VALUE;
126    
127            public static final String XML_HTTP_REQUEST = "XMLHttpRequest";
128    
129    }