001    /**
002     * Copyright (c) 2000-2011 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.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_JSON = "application/json";
025    
026            public static final String APPLICATION_MSWORD = "application/msword";
027    
028            public static final String APPLICATION_OCTET_STREAM =
029                    "application/octet-stream";
030    
031            public static final String APPLICATION_PDF = "application/pdf";
032    
033            public static final String APPLICATION_TEXT = "application/text";
034    
035            public static final String APPLICATION_VND_MS_EXCEL =
036                    "application/vnd.ms-excel";
037    
038            public static final String APPLICATION_VND_MS_POWERPOINT =
039                    "application/vnd.ms-powerpoint";
040    
041            public static final String APPLICATION_X_JAVA_SERIALIZED_OBJECT =
042                    "application/x-java-serialized-object";
043    
044            public static final String APPLICATION_X_PDF = "application/x-pdf";
045    
046            public static final String APPLICATION_X_WWW_FORM_URLENCODED =
047                    "application/x-www-form-urlencoded";
048    
049            public static final String APPLICATION_X_WWW_FORM_URLENCODED_UTF8 =
050                    "application/x-www-form-urlencoded; charset=UTF-8";
051    
052            public static final String APPLICATION_ZIP = "application/zip";
053    
054            public static final String HTTPD_UNIX_DIRECTORY = "httpd/unix-directory";
055    
056            public static final String IMAGE_JPEG = "image/jpeg";
057    
058            public static final String MESSAGE_RFC822 = "message/rfc822";
059    
060            public static final String MULTIPART_ALTERNATIVE = "multipart/alternative";
061    
062            public static final String MULTIPART_FORM_DATA = "multipart/form-data";
063    
064            public static final String MULTIPART_MIXED = "multipart/mixed";
065    
066            public static final String TEXT = "text";
067    
068            public static final String TEXT_CALENDAR = "text/calendar";
069    
070            public static final String TEXT_CSS = "text/css";
071    
072            public static final String TEXT_CSS_UTF8 = "text/css; charset=UTF-8";
073    
074            public static final String TEXT_CSV = "text/csv";
075    
076            public static final String TEXT_CSV_UTF8 = "text/csv; charset=UTF-8";
077    
078            public static final String TEXT_HTML = "text/html";
079    
080            public static final String TEXT_HTML_UTF8 = "text/html; charset=UTF-8";
081    
082            public static final String TEXT_JAVASCRIPT = "text/javascript";
083    
084            public static final String TEXT_PLAIN = "text/plain";
085    
086            public static final String TEXT_PLAIN_UTF8 = "text/plain; charset=UTF-8";
087    
088            public static final String TEXT_WML = "text/wml";
089    
090            public static final String TEXT_XML = "text/xml";
091    
092            public static final String TEXT_XML_UTF8 = "text/xml; charset=UTF-8";
093    
094            public static final String XHTML_MP = "application/vnd.wap.xhtml+xml";
095    
096    }