@@ -0,0 +1,1393 @@
+package org.webmessage.util;%0D%0A%0D%0Aimport java.util.HashMap;%0D%0Aimport java.util.Map;%0D%0A%0D%0Apublic class MimeTypes %7B%0D%0A%09private final static Map%3CString, String%3E mimeTypes = new HashMap%3CString, String%3E();%0D%0A%09static%7B%0D%0A        mimeTypes.put(%22txt%22, %22text/plain%22);%0D%0A        mimeTypes.put(%22css%22, %22text/css%22);%0D%0A        mimeTypes.put(%22csv%22, %22text/csv%22);%0D%0A        mimeTypes.put(%22htm%22, %22text/html%22);%0D%0A        mimeTypes.put(%22html%22, %22text/html%22);%0D%0A        mimeTypes.put(%22xml%22, %22text/xml%22);%0D%0A        mimeTypes.put(%22xsl%22, %22text/xml%22);%0D%0A        mimeTypes.put(%22js%22, %22text/javascript%22); %0D%0A        mimeTypes.put(%22js%22, %22application/x-javascript%22);%0D%0A        mimeTypes.put(%22xhtml%22, %22application/xhtml+xml%22);%0D%0A        mimeTypes.put(%22json%22, %22application/json%22);%0D%0A        mimeTypes.put(%22json%22, %22text/json%22);%0D%0A        mimeTypes.put(%22pdf%22, %22application/pdf%22);%0D%0A        mimeTypes.put(%22zip%22, %22application/zip%22);%0D%0A        mimeTypes.put(%22tar%22, %22application/x-tar%22);%0D%0A        mimeTypes.put(%22gif%22, %22image/gif%22);%0D%0A        mimeTypes.put(%22jpeg%22, %22image/jpeg%22);%0D%0A        mimeTypes.put(%22jpg%22, %22image/jpeg%22);%0D%0A        mimeTypes.put(%22tiff%22, %22image/tiff%22);%0D%0A        mimeTypes.put(%22tif%22, %22image/tiff%22);%0D%0A        mimeTypes.put(%22png%22, %22image/png%22);%0D%0A        mimeTypes.put(%22svg%22, %22image/svg+xml%22);%0D%0A        mimeTypes.put(%22ico%22, %22image/vnd.microsoft.icon%22);%0D%0A%09%7D%0D%0A%09public static String getMimeType(String key)%7B%0D%0A%09%09return mimeTypes.get(key);%0D%0A%09%7D%0D%0A%7D%0D%0A

add mimetypes