chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1369426 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java
Date Sat, 04 Aug 2012 20:18:46 GMT
Author: fmui
Date: Sat Aug  4 20:18:45 2012
New Revision: 1369426

URL: http://svn.apache.org/viewvc?rev=1369426&view=rev
Log:
Updated MIME types

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java?rev=1369426&r1=1369425&r2=1369426&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java
Sat Aug  4 20:18:45 2012
@@ -51,6 +51,7 @@ public class MimeTypes {
         EXT2MIME.put("cat", "application/vnd.ms-pkiseccat");
         EXT2MIME.put("cdf", "application/x-cdf");
         EXT2MIME.put("cer", "application/x-x509-ca-cert");
+        EXT2MIME.put("class", "application/java-vm");
         EXT2MIME.put("clp", "application/x-msclip");
         EXT2MIME.put("cmx", "image/x-cmx");
         EXT2MIME.put("cod", "image/cis-cod");
@@ -68,8 +69,10 @@ public class MimeTypes {
         EXT2MIME.put("dvi", "application/x-dvi");
         EXT2MIME.put("dxr", "application/x-director");
         EXT2MIME.put("eps", "application/postscript");
+        EXT2MIME.put("epub", "application/epub+zip");
         EXT2MIME.put("etx", "text/x-setext");
         EXT2MIME.put("evy", "application/envoy");
+        EXT2MIME.put("flac", "audio/flac");
         EXT2MIME.put("fif", "application/fractals");
         EXT2MIME.put("flr", "x-world/x-vrml");
         EXT2MIME.put("gif", "image/gif");
@@ -88,11 +91,13 @@ public class MimeTypes {
         EXT2MIME.put("ief", "image/ief");
         EXT2MIME.put("iii", "application/x-iphone");
         EXT2MIME.put("isp", "application/x-internet-signup");
+        EXT2MIME.put("jar", "application/java-archive");
         EXT2MIME.put("jfif", "image/pipeg");
         EXT2MIME.put("jpe", "image/jpeg");
         EXT2MIME.put("jpeg", "image/jpeg");
         EXT2MIME.put("jpg", "image/jpeg");
         EXT2MIME.put("js", "application/x-javascript");
+        EXT2MIME.put("json", "application/json");
         EXT2MIME.put("latex", "application/x-latex");
         EXT2MIME.put("lsf", "video/x-la-asf");
         EXT2MIME.put("lsx", "video/x-la-asf");
@@ -117,6 +122,25 @@ public class MimeTypes {
         EXT2MIME.put("mvb", "application/x-msmediaview");
         EXT2MIME.put("nws", "message/rfc822");
         EXT2MIME.put("oda", "application/oda");
+        EXT2MIME.put("odb", "application/vnd.oasis.opendocument.database");
+        EXT2MIME.put("odc", "application/vnd.oasis.opendocument.chart");
+        EXT2MIME.put("odf", "application/vnd.oasis.opendocument.formula");
+        EXT2MIME.put("odft", "application/vnd.oasis.opendocument.formula-template");
+        EXT2MIME.put("odg", "application/vnd.oasis.opendocument.graphics");
+        EXT2MIME.put("odi", "application/vnd.oasis.opendocument.image");
+        EXT2MIME.put("odm", "application/vnd.oasis.opendocument.text-master");
+        EXT2MIME.put("odp", "application/vnd.oasis.opendocument.presentation");
+        EXT2MIME.put("ods", "application/vnd.oasis.opendocument.spreadsheet");
+        EXT2MIME.put("odt", "application/vnd.oasis.opendocument.text");
+        EXT2MIME.put("ogg", "audio/ogg");
+        EXT2MIME.put("ogv", "video/ogg");
+        EXT2MIME.put("otc", "application/vnd.oasis.opendocument.chart-template");
+        EXT2MIME.put("otg", "application/vnd.oasis.opendocument.graphics-template");
+        EXT2MIME.put("oth", "application/vnd.oasis.opendocument.text-web");
+        EXT2MIME.put("oti", "application/vnd.oasis.opendocument.image-template");
+        EXT2MIME.put("otp", "application/vnd.oasis.opendocument.presentation-template");
+        EXT2MIME.put("ots", "application/vnd.oasis.opendocument.spreadsheet-template");
+        EXT2MIME.put("ott", "application/vnd.oasis.opendocument.text-template");
         EXT2MIME.put("p10", "application/pkcs10");
         EXT2MIME.put("p12", "application/x-pkcs12v");
         EXT2MIME.put("p7b", "application/x-pkcs7-certificates");
@@ -155,6 +179,7 @@ public class MimeTypes {
         EXT2MIME.put("roff", "application/x-troff");
         EXT2MIME.put("rtf", "application/rtf");
         EXT2MIME.put("rtx", "text/richtext");
+        EXT2MIME.put("ser", "application/java-serialized-object");
         EXT2MIME.put("scd", "application/x-msschedule");
         EXT2MIME.put("sct", "text/scriptlet");
         EXT2MIME.put("sh", "application/x-sh");
@@ -214,9 +239,15 @@ public class MimeTypes {
         // MIME type to extension
         MIME2EXT.put("application/octet-stream", "");
         MIME2EXT.put("application/envoy", "evy");
+        MIME2EXT.put("application/epub+zip", "epub");
         MIME2EXT.put("application/fractals", "fif");
         MIME2EXT.put("application/futuresplash", "spl");
         MIME2EXT.put("application/hta", "hta");
+        MIME2EXT.put("application/java-archive", "jar");
+        MIME2EXT.put("application/java-serialized-object", "ser");
+        MIME2EXT.put("application/java-vm", "class");
+        MIME2EXT.put("application/javascript", "js");
+        MIME2EXT.put("application/json", "json");
         MIME2EXT.put("application/mac-binhex40", "hqx");
         MIME2EXT.put("application/msword", "doc");
         MIME2EXT.put("application/oda", "oda");
@@ -234,6 +265,23 @@ public class MimeTypes {
         MIME2EXT.put("application/vnd.ms-powerpoint", "ppt");
         MIME2EXT.put("application/vnd.ms-project", "mpp");
         MIME2EXT.put("application/vnd.ms-works", "wps");
+        MIME2EXT.put("application/vnd.oasis.opendocument.chart", "odc");
+        MIME2EXT.put("application/vnd.oasis.opendocument.chart-template", "otc");
+        MIME2EXT.put("application/vnd.oasis.opendocument.database", "odb");
+        MIME2EXT.put("application/vnd.oasis.opendocument.formula", "odf");
+        MIME2EXT.put("application/vnd.oasis.opendocument.formula-template", "odft");
+        MIME2EXT.put("application/vnd.oasis.opendocument.graphics", "odg");
+        MIME2EXT.put("application/vnd.oasis.opendocument.graphics-template", "otg");
+        MIME2EXT.put("application/vnd.oasis.opendocument.image", "odi");
+        MIME2EXT.put("application/vnd.oasis.opendocument.image-template", "oti");
+        MIME2EXT.put("application/vnd.oasis.opendocument.presentation", "odp");
+        MIME2EXT.put("application/vnd.oasis.opendocument.presentation-template", "otp");
+        MIME2EXT.put("application/vnd.oasis.opendocument.spreadsheet", "ods");
+        MIME2EXT.put("application/vnd.oasis.opendocument.spreadsheet-template", "ots");
+        MIME2EXT.put("application/vnd.oasis.opendocument.text", "odt");
+        MIME2EXT.put("application/vnd.oasis.opendocument.text-master", "odm");
+        MIME2EXT.put("application/vnd.oasis.opendocument.text-template", "ott");
+        MIME2EXT.put("application/vnd.oasis.opendocument.text-web", "oth");
         MIME2EXT.put("application/vnd.openxmlformats-officedocument.presentationml.presentation",
"pptx");
         MIME2EXT.put("application/vnd.openxmlformats-officedocument.presentationml.slideshow",
"ppsx");
         MIME2EXT.put("application/vnd.openxmlformats-officedocument.presentationml.template",
"potx");
@@ -290,14 +338,16 @@ public class MimeTypes {
         MIME2EXT.put("application/ynd.ms-pkipko", "vpko");
         MIME2EXT.put("application/zip", "zip");
         MIME2EXT.put("audio/basic", "snd");
+        MIME2EXT.put("audio/flac", "flac");
         MIME2EXT.put("audio/mid", "mid");
         MIME2EXT.put("audio/mpeg", "mp3");
+        MIME2EXT.put("audio/ogg", "ogg");
         MIME2EXT.put("audio/x-aiff", "aif");
         MIME2EXT.put("audio/x-mpegurl", "m3u");
         MIME2EXT.put("audio/x-pn-realaudio", "ram");
         MIME2EXT.put("audio/x-wav", "wav");
-        MIME2EXT.put("doct", "application/vnd.openxmlformats-officedocument.wordprocessingml.template");
-        MIME2EXT.put("docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
+        MIME2EXT.put("application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"doct");
+        MIME2EXT.put("application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"docx");
         MIME2EXT.put("image/bmp", "bmp");
         MIME2EXT.put("image/cis-cod", "cod");
         MIME2EXT.put("image/gif", "gif");
@@ -333,6 +383,7 @@ public class MimeTypes {
         MIME2EXT.put("text/xml", "xml");
         MIME2EXT.put("video/mpeg", "mpeg");
         MIME2EXT.put("video/mpegv", "mpe");
+        MIME2EXT.put("video/ogg", "ogv");
         MIME2EXT.put("video/quicktime", "mov");
         MIME2EXT.put("video/quicktime", "qt");
         MIME2EXT.put("video/x-la-asf", "lsf");



Mime
View raw message