Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

update to mime types in parsers and httpd.mime

orbitera564df398408
diff --git a/httpd.mime b/httpd.mime
index 8fda3c18a..0717448d9 100644
--- a/httpd.mime
+++ b/httpd.mime
@@ -6,6 +6,8 @@
7z = application/x-7z-compressed
ai = application/postscript
aiff = audio/x-aiff
+asp = text/html
+aspx = text/html
au = audio/basic
avi = video/x-msvideo
bat = text/plain
@@ -37,6 +39,7 @@ jpe = image/jpeg
jpeg = image/jpeg
jpg = image/jpeg
js = text/javascript
+jsp = text/html
lha = application/x-lzh
lzh = application/x-lzh
m4v = video/x-m4v
@@ -74,13 +77,15 @@ ppt = application/mspowerpoint
pptx = application/mspowerpoint
ppz = application/mspowerpoint
ps = application/postscript
+py = text/html
qt = video/quicktime
ra = audio/x-pn-realaudio
ram = audio/x-pn-realaudio
rar = application/x-rar
+rdf = application/rdf+xml
rm = audio/x-pn-realaudio-plugin
-rpm = audio/x-pn-realaudio-plugin
-rss = text/xml
+rpm = application/x-rpm
+rss = application/rss+xml
rtf = application/rtf
sh = text/plain
shtml = text/html
@@ -92,6 +97,8 @@ sxc = application/OOo-calc
sxd = application/OOo-draw
sxi = application/OOo-impress
tar = application/tar
+tbz = application/x-bzip2
+tbz2 = application/x-bzip2
tex = application/x-tex
tgz = application/tar
tif = image/tiff
diff --git a/source/de/anomic/document/parser/htmlParser.java b/source/de/anomic/document/parser/htmlParser.java
index 2c6529fbc..5c2b8f5b5 100644
--- a/source/de/anomic/document/parser/htmlParser.java
+++ b/source/de/anomic/document/parser/htmlParser.java
@@ -65,8 +65,10 @@ public class htmlParser extends AbstractParser implements Idiom {
SUPPORTED_EXTENSIONS.add("csv");
SUPPORTED_EXTENSIONS.add("pl");
SUPPORTED_EXTENSIONS.add("py");
- SUPPORTED_MIME_TYPES.add("application/xhtml+xml");
SUPPORTED_MIME_TYPES.add("text/html");
+ SUPPORTED_MIME_TYPES.add("text/xhtml+xml");
+ SUPPORTED_MIME_TYPES.add("application/xhtml+xml");
+ SUPPORTED_MIME_TYPES.add("application/x-httpd-php");
SUPPORTED_MIME_TYPES.add("text/plain");
SUPPORTED_MIME_TYPES.add("text/sgml");
SUPPORTED_MIME_TYPES.add("text/csv");
diff --git a/source/de/anomic/document/parser/odtParser.java b/source/de/anomic/document/parser/odtParser.java
index 8f918fc33..ec7c4336a 100644
--- a/source/de/anomic/document/parser/odtParser.java
+++ b/source/de/anomic/document/parser/odtParser.java
@@ -68,12 +68,32 @@ public class odtParser extends AbstractParser implements Idiom {
SUPPORTED_EXTENSIONS.add("odt");
SUPPORTED_EXTENSIONS.add("ods");
SUPPORTED_EXTENSIONS.add("odp");
+ SUPPORTED_EXTENSIONS.add("odg");
+ SUPPORTED_EXTENSIONS.add("odc");
+ SUPPORTED_EXTENSIONS.add("odf");
+ SUPPORTED_EXTENSIONS.add("odb");
+ SUPPORTED_EXTENSIONS.add("odi");
+ SUPPORTED_EXTENSIONS.add("odm");
+ SUPPORTED_EXTENSIONS.add("ott");
+ SUPPORTED_EXTENSIONS.add("ots");
+ SUPPORTED_EXTENSIONS.add("otp");
+ SUPPORTED_EXTENSIONS.add("otg");
SUPPORTED_EXTENSIONS.add("sxw"); // Star Office Writer file format
SUPPORTED_EXTENSIONS.add("sxc"); // Star Office Calc file format
SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.text");
- SUPPORTED_MIME_TYPES.add("application/x-vnd.oasis.opendocument.text");
- SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.presentation");
SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.spreadsheet");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.presentation");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.graphics");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.chart");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.formula");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.database");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.image");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.text-master");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.text-template");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.spreadsheet-template");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.presentation-template");
+ SUPPORTED_MIME_TYPES.add("application/vnd.oasis.opendocument.graphics-template");
+ SUPPORTED_MIME_TYPES.add("application/x-vnd.oasis.opendocument.text");
SUPPORTED_MIME_TYPES.add("application/OOo-calc");
SUPPORTED_MIME_TYPES.add("application/OOo-writer");
}
diff --git a/source/de/anomic/document/parser/vcfParser.java b/source/de/anomic/document/parser/vcfParser.java
index 5967e0bbb..853bb3e57 100644
--- a/source/de/anomic/document/parser/vcfParser.java
+++ b/source/de/anomic/document/parser/vcfParser.java
@@ -68,8 +68,6 @@ public class vcfParser extends AbstractParser implements Idiom {
SUPPORTED_EXTENSIONS.add("vcf");
SUPPORTED_MIME_TYPES.add("text/x-vcard");
SUPPORTED_MIME_TYPES.add("application/vcard");
- SUPPORTED_MIME_TYPES.add("text/anytext");
- SUPPORTED_MIME_TYPES.add("text/directory");
SUPPORTED_MIME_TYPES.add("application/x-versit");
SUPPORTED_MIME_TYPES.add("text/x-versit");
SUPPORTED_MIME_TYPES.add("text/x-vcalendar");
diff --git a/source/de/anomic/document/parser/vsdParser.java b/source/de/anomic/document/parser/vsdParser.java
index e133e1146..331f0152a 100644
--- a/source/de/anomic/document/parser/vsdParser.java
+++ b/source/de/anomic/document/parser/vsdParser.java
@@ -49,6 +49,7 @@ public class vsdParser extends AbstractParser implements Idiom {
public static final Set<String> SUPPORTED_EXTENSIONS = new HashSet<String>();
static {
SUPPORTED_EXTENSIONS.add("vsd");
+ SUPPORTED_EXTENSIONS.add("vss");
SUPPORTED_EXTENSIONS.add("vst");
SUPPORTED_EXTENSIONS.add("vdx");
SUPPORTED_EXTENSIONS.add("vtx");
diff --git a/source/de/anomic/document/parser/xlsParser.java b/source/de/anomic/document/parser/xlsParser.java
index 2cdb32ed1..5b31f3b97 100644
--- a/source/de/anomic/document/parser/xlsParser.java
+++ b/source/de/anomic/document/parser/xlsParser.java
@@ -62,6 +62,7 @@ public class xlsParser extends AbstractParser implements Idiom, HSSFListener {
public static final Set<String> SUPPORTED_EXTENSIONS = new HashSet<String>();
static {
SUPPORTED_EXTENSIONS.add("xls");
+ SUPPORTED_EXTENSIONS.add("xla");
SUPPORTED_EXTENSIONS.add("xlsx");
SUPPORTED_MIME_TYPES.add("application/msexcel");
SUPPORTED_MIME_TYPES.add("application/excel");