chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1429831 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java
Date Mon, 07 Jan 2013 15:09:03 GMT
Author: fmui
Date: Mon Jan  7 15:09:02 2013
New Revision: 1429831

URL: http://svn.apache.org/viewvc?rev=1429831&view=rev
Log:
added more MIME type mappings

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=1429831&r1=1429830&r2=1429831&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
Mon Jan  7 15:09:02 2013
@@ -72,9 +72,13 @@ public class MimeTypes {
         EXT2MIME.put("epub", "application/epub+zip");
         EXT2MIME.put("etx", "text/x-setext");
         EXT2MIME.put("evy", "application/envoy");
+        EXT2MIME.put("f4v", "video/x-f4v");
         EXT2MIME.put("flac", "audio/flac");
         EXT2MIME.put("fif", "application/fractals");
         EXT2MIME.put("flr", "x-world/x-vrml");
+        EXT2MIME.put("fli", "video/x-fli");
+        EXT2MIME.put("flv", "video/x-flv");
+        EXT2MIME.put("fm", "application/vnd.framemaker");
         EXT2MIME.put("gif", "image/gif");
         EXT2MIME.put("gtar", "application/x-gtar");
         EXT2MIME.put("gz", "application/x-gzip");
@@ -102,6 +106,11 @@ public class MimeTypes {
         EXT2MIME.put("lsf", "video/x-la-asf");
         EXT2MIME.put("lsx", "video/x-la-asf");
         EXT2MIME.put("m3u", "audio/x-mpegurl");
+        EXT2MIME.put("m4a", "audio/mp4");
+        EXT2MIME.put("m4b", "audio/mp4");
+        EXT2MIME.put("m4p", "audio/mp4");
+        EXT2MIME.put("m4r", "audio/mp4");
+        EXT2MIME.put("m4v", "video/mp4");
         EXT2MIME.put("man", "application/x-troff-man");
         EXT2MIME.put("mdb", "application/x-msaccess");
         EXT2MIME.put("me", "application/x-troff-me");
@@ -112,6 +121,7 @@ public class MimeTypes {
         EXT2MIME.put("movie", "video/x-sgi-movie");
         EXT2MIME.put("mp2", "video/mpeg");
         EXT2MIME.put("mp3", "audio/mpeg");
+        EXT2MIME.put("mp4", "video/mp4");
         EXT2MIME.put("mpa", "video/mpeg");
         EXT2MIME.put("mpe", "video/mpegv");
         EXT2MIME.put("mpeg", "video/mpeg");
@@ -134,6 +144,10 @@ public class MimeTypes {
         EXT2MIME.put("odt", "application/vnd.oasis.opendocument.text");
         EXT2MIME.put("ogg", "audio/ogg");
         EXT2MIME.put("ogv", "video/ogg");
+        EXT2MIME.put("onetoc", "application/onenote");
+        EXT2MIME.put("onetoc2", "application/onenote");
+        EXT2MIME.put("onetmp", "application/onenote");
+        EXT2MIME.put("onepkg", "application/onenote");
         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");
@@ -252,12 +266,14 @@ public class MimeTypes {
         MIME2EXT.put("application/msword", "doc");
         MIME2EXT.put("application/oda", "oda");
         MIME2EXT.put("application/olescript", "axs");
+        MIME2EXT.put("application/onenote", "onetoc");
         MIME2EXT.put("application/pdf", "pdf");
         MIME2EXT.put("application/pics-rules", "prf");
         MIME2EXT.put("application/pkcs10", "p10");
         MIME2EXT.put("application/pkix-crl", "crl");
         MIME2EXT.put("application/postscript", "ps");
         MIME2EXT.put("application/rtf", "rtf");
+        MIME2EXT.put("application/vnd.framemaker", "fm");
         MIME2EXT.put("application/vnd.ms-excel", "xls");
         MIME2EXT.put("application/vnd.ms-pkicertstore", "sst");
         MIME2EXT.put("application/vnd.ms-pkiseccat", "cat");
@@ -339,11 +355,15 @@ public class MimeTypes {
         MIME2EXT.put("application/zip", "zip");
         MIME2EXT.put("audio/basic", "snd");
         MIME2EXT.put("audio/flac", "flac");
+        MIME2EXT.put("audio/mp4", "m4a");
         MIME2EXT.put("audio/mid", "mid");
+        MIME2EXT.put("audio/midi", "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-ms-wax", "wax");
+        MIME2EXT.put("audio/x-ms-wma", "wma");
         MIME2EXT.put("audio/x-pn-realaudio", "ram");
         MIME2EXT.put("audio/x-wav", "wav");
         MIME2EXT.put("application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"doct");
@@ -381,13 +401,18 @@ public class MimeTypes {
         MIME2EXT.put("text/x-setext", "etx");
         MIME2EXT.put("text/x-vcard", "vcf");
         MIME2EXT.put("text/xml", "xml");
+        MIME2EXT.put("video/mp4", "mp4");
         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-f4v", "f4v");
+        MIME2EXT.put("video/x-fli", "fli");
+        MIME2EXT.put("video/x-flv", "flv");
         MIME2EXT.put("video/x-la-asf", "lsf");
         MIME2EXT.put("video/x-la-asf", "lsx");
+        MIME2EXT.put("video/x-m4v", "m4v");
         MIME2EXT.put("video/x-ms-asf", "asf");
         MIME2EXT.put("video/x-msvideo", "avi");
         MIME2EXT.put("video/x-sgi-movie", "movie");



Mime
View raw message