diff --git a/pom.xml b/pom.xml
index a8ec515..3db28be 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
org.swisspush
rest-mirror
- 3.0.5-SNAPSHOT
+ 3.1.0-SNAPSHOT
rest-mirror
A verticle that mirrors resources, which are provided as zip into a rest storage.
@@ -37,14 +37,6 @@
https://github.com/swisspush/vertx-rest-mirror.git
-
-
- org.swisspush
- rest-storage
- 3.0.0
-
-
-
io.vertx
vertx-core
@@ -60,25 +52,25 @@
commons-io
commons-io
- 2.4
+ 2.15.1
compile
commons-lang
commons-lang
- 2.4
+ 2.6
compile
org.slf4j
slf4j-api
- 1.7.6
+ 2.0.10
compile
org.slf4j
- slf4j-log4j12
- 1.7.6
+ slf4j-reload4j
+ 2.0.10
compile
@@ -91,7 +83,7 @@
junit
junit
- 4.10
+ 4.13.2
test
@@ -101,9 +93,9 @@
test
- com.jayway.restassured
+ io.rest-assured
rest-assured
- 2.4.1
+ 5.4.0
test
@@ -381,7 +373,7 @@
- 4.2.1
+ 4.5.1
UTF8
https://oss.sonatype.org/content/repositories/snapshots/
diff --git a/src/main/java/org/swisspush/mirror/ZipEntryPutter.java b/src/main/java/org/swisspush/mirror/ZipEntryPutter.java
index a1c3376..8dea242 100644
--- a/src/main/java/org/swisspush/mirror/ZipEntryPutter.java
+++ b/src/main/java/org/swisspush/mirror/ZipEntryPutter.java
@@ -9,7 +9,7 @@
import io.vertx.core.json.JsonObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.swisspush.reststorage.MimeTypeResolver;
+import org.swisspush.mirror.util.MimeTypeResolver;
import java.util.Map;
diff --git a/src/main/java/org/swisspush/mirror/util/MimeTypeResolver.java b/src/main/java/org/swisspush/mirror/util/MimeTypeResolver.java
new file mode 100644
index 0000000..ecd8509
--- /dev/null
+++ b/src/main/java/org/swisspush/mirror/util/MimeTypeResolver.java
@@ -0,0 +1,61 @@
+package org.swisspush.mirror.util;
+
+import org.slf4j.Logger;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Properties;
+
+import static org.slf4j.LoggerFactory.getLogger;
+
+public class MimeTypeResolver {
+
+ private static final Logger log = getLogger(MimeTypeResolver.class);
+ private Map mimeTypes = new HashMap<>();
+
+ private final String defaultMimeType;
+
+ public MimeTypeResolver(String defaultMimeType) {
+ this.defaultMimeType = defaultMimeType;
+ Properties props = new Properties();
+ InputStream in = this.getClass().getClassLoader().getResourceAsStream("mime-types.properties");
+ try {
+ props.load(in);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ } finally {
+ try {
+ if(in != null) {
+ in.close();
+ }
+ } catch (IOException ex) {
+ log.debug("close() failed", ex);
+ }
+ }
+
+ for( Map.Entry