From 26704646982e59a5f8d626b161899bba291694ae Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 12 Dec 2013 20:56:32 +0000 Subject: Add some more mimetypes git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1260 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../egiz/bku/slcommands/impl/cms/CMSHashDataInput.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bkucommon') 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; } } -- cgit v1.2.3