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_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_X_WWW_FORM_URLENCODED =
032                    "application/x-www-form-urlencoded";
033    
034            public static final String APPLICATION_ZIP = "application/zip";
035    
036            public static final String HTTPD_UNIX_DIRECTORY = "httpd/unix-directory";
037    
038            public static final String IMAGE_JPEG = "image/jpeg";
039    
040            public static final String MESSAGE_RFC822 = "message/rfc822";
041    
042            public static final String MULTIPART_ALTERNATIVE = "multipart/alternative";
043    
044            public static final String MULTIPART_FORM_DATA = "multipart/form-data";
045    
046            public static final String MULTIPART_MIXED = "multipart/mixed";
047    
048            public static final String TEXT_CALENDAR = "text/calendar";
049    
050            public static final String TEXT_CSS = "text/css";
051    
052            public static final String TEXT_CSS_UTF8 = "text/css; charset=UTF-8";
053    
054            public static final String TEXT_CSV = "text/csv";
055    
056            public static final String TEXT_CSV_UTF8 = "text/csv; charset=UTF-8";
057    
058            public static final String TEXT_HTML = "text/html";
059    
060            public static final String TEXT_HTML_UTF8 = "text/html; charset=UTF-8";
061    
062            public static final String TEXT_JAVASCRIPT = "text/javascript";
063    
064            public static final String TEXT_PLAIN = "text/plain";
065    
066            public static final String TEXT_PLAIN_UTF8 = "text/plain; charset=UTF-8";
067    
068            public static final String TEXT_WML = "text/wml";
069    
070            public static final String TEXT_XML = "text/xml";
071    
072            public static final String TEXT_XML_UTF8 = "text/xml; charset=UTF-8";
073    
074            public static final String XHTML_MP = "application/vnd.wap.xhtml+xml";
075    
076    }