summaryrefslogtreecommitdiff
path: root/bkucommon
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2013-12-12 20:56:32 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2013-12-12 20:56:32 +0000
commit26704646982e59a5f8d626b161899bba291694ae (patch)
treea43d89618c56f6cac59d9f930771b9efd5861c05 /bkucommon
parent0a4f07e1133a3b2508e875e29c4507e52fee3bb8 (diff)
downloadmocca-26704646982e59a5f8d626b161899bba291694ae.tar.gz
mocca-26704646982e59a5f8d626b161899bba291694ae.tar.bz2
mocca-26704646982e59a5f8d626b161899bba291694ae.zip
Add some more mimetypes
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1260 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/CMSHashDataInput.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/CMSHashDataInput.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/CMSHashDataInput.java
index f126e64f..e25fd3ab 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/CMSHashDataInput.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/CMSHashDataInput.java
@@ -52,15 +52,33 @@ public class CMSHashDataInput implements HashDataInput {
else if (mimeType.equalsIgnoreCase("text/plain")) {
return ".txt";
}
+ else if (mimeType.equalsIgnoreCase("text/xml")) {
+ return ".xml";
+ }
+ else if (mimeType.equalsIgnoreCase("text/html")) {
+ return ".html";
+ }
else if (mimeType.equalsIgnoreCase("application/xml")) {
return ".xml";
}
+ else if (mimeType.equalsIgnoreCase("application/xhtml+xml")) {
+ return ".html";
+ }
else if (mimeType.equalsIgnoreCase("application/zip")) {
return ".zip";
}
else if (mimeType.equalsIgnoreCase("application/gzip")) {
return ".gz";
}
+ else if (mimeType.equalsIgnoreCase("image/gif")) {
+ return ".gif";
+ }
+ else if (mimeType.equalsIgnoreCase("image/jpeg")) {
+ return ".jpg";
+ }
+ else if (mimeType.equalsIgnoreCase("image/png")) {
+ return ".png";
+ }
return null;
}
}