001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface ContentTypes {
021    
022            public static final String APPLICATION_ATOM_XML = "application/atom+xml";
023    
024            public static final String APPLICATION_MSWORD = "application/msword";
025    
026            public static final String APPLICATION_OCTET_STREAM =
027                    "application/octet-stream";
028    
029            public static final String APPLICATION_TEXT = "application/text";
030    
031            public static final String APPLICATION_VND_MS_EXCEL =
032                    "application/vnd.ms-excel";
033    
034            public static final String APPLICATION_VND_MS_POWERPOINT =
035                    "application/vnd.ms-powerpoint";
036    
037            public static final String APPLICATION_X_JAVA_SERIALIZED_OBJECT =
038                    "application/x-java-serialized-object";
039    
040            public static final String APPLICATION_X_WWW_FORM_URLENCODED =
041                    "application/x-www-form-urlencoded";
042    
043            public static final String APPLICATION_X_WWW_FORM_URLENCODED_UTF8 =
044                    "application/x-www-form-urlencoded; charset=UTF-8";
045    
046            public static final String APPLICATION_ZIP = "application/zip";
047    
048            public static final String HTTPD_UNIX_DIRECTORY = "httpd/unix-directory";
049    
050            public static final String IMAGE_JPEG = "image/jpeg";
051    
052            public static final String MESSAGE_RFC822 = "message/rfc822";
053    
054            public static final String MULTIPART_ALTERNATIVE = "multipart/alternative";
055    
056            public static final String MULTIPART_FORM_DATA = "multipart/form-data";
057    
058            public static final String MULTIPART_MIXED = "multipart/mixed";
059    
060            public static final String TEXT = "text";
061    
062            public static final String TEXT_CALENDAR = "text/calendar";
063    
064            public static final String TEXT_CSS = "text/css";
065    
066            public static final String TEXT_CSS_UTF8 = "text/css; charset=UTF-8";
067    
068            public static final String TEXT_CSV = "text/csv";
069    
070            public static final String TEXT_CSV_UTF8 = "text/csv; charset=UTF-8";
071    
072            public static final String TEXT_HTML = "text/html";
073    
074            public static final String TEXT_HTML_UTF8 = "text/html; charset=UTF-8";
075    
076            public static final String TEXT_JAVASCRIPT = "text/javascript";
077    
078            public static final String TEXT_PLAIN = "text/plain";
079    
080            public static final String TEXT_PLAIN_UTF8 = "text/plain; charset=UTF-8";
081    
082            public static final String TEXT_WML = "text/wml";
083    
084            public static final String TEXT_XML = "text/xml";
085    
086            public static final String TEXT_XML_UTF8 = "text/xml; charset=UTF-8";
087    
088            public static final String XHTML_MP = "application/vnd.wap.xhtml+xml";
089    
090    }