summaryrefslogtreecommitdiff
path: root/bkucommon/src
diff options
context:
space:
mode:
Diffstat (limited to 'bkucommon/src')
-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;
}
}