diff --git a/servlet/pom.xml b/servlet/pom.xml
index 28a7c590..361dc196 100644
--- a/servlet/pom.xml
+++ b/servlet/pom.xml
@@ -50,31 +50,17 @@
provided
-
- javax.servlet
- jsp-api
- 2.0
- provided
-
-
-
- commons-fileupload
- commons-fileupload
- 1.4
- provided
-
-
junit
junit
- 4.13.1
+ 4.13.2
test
org.mockito
mockito-core
- 3.12.4
+ 4.1.0
test
diff --git a/servlet/src/main/java/com/twelvemonkeys/servlet/cache/AbstractCacheRequest.java b/servlet/src/main/java/com/twelvemonkeys/servlet/cache/AbstractCacheRequest.java
deleted file mode 100755
index ee763fac..00000000
--- a/servlet/src/main/java/com/twelvemonkeys/servlet/cache/AbstractCacheRequest.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (c) 2008, Harald Kuhr
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of the copyright holder nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package com.twelvemonkeys.servlet.cache;
-
-import java.net.URI;
-
-import com.twelvemonkeys.lang.Validate;
-
-/**
- * AbstractCacheRequest
- *
- * @author Harald Kuhr
- * @author last modified by $Author: haku $
- * @version $Id: AbstractCacheRequest.java#1 $
- */
-@Deprecated
-public abstract class AbstractCacheRequest implements CacheRequest {
- private final URI requestURI;
- private final String method;
-
- protected AbstractCacheRequest(final URI pRequestURI, final String pMethod) {
- requestURI = Validate.notNull(pRequestURI, "requestURI");
- method = Validate.notNull(pMethod, "method");
- }
-
- public URI getRequestURI() {
- return requestURI;
- }
-
- public String getMethod() {
- return method;
- }
-
- // TODO: Consider overriding equals/hashcode
-
- @Override
- public String toString() {
- return new StringBuilder(getClass().getSimpleName())
- .append("[URI=").append(requestURI)
- .append(", parameters=").append(getParameters())
- .append(", headers=").append(getHeaders())
- .append("]").toString();
- }
-}
diff --git a/servlet/src/main/java/com/twelvemonkeys/servlet/cache/CacheException.java b/servlet/src/main/java/com/twelvemonkeys/servlet/cache/CacheException.java
deleted file mode 100755
index 9912c4ff..00000000
--- a/servlet/src/main/java/com/twelvemonkeys/servlet/cache/CacheException.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2008, Harald Kuhr
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of the copyright holder nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package com.twelvemonkeys.servlet.cache;
-
-/**
- * CacheException
- *
- * @author Harald Kuhr
- * @author last modified by $Author: haku $
- * @version $Id: CacheException.java#1 $
- */
-@Deprecated
-public class CacheException extends Exception {
- public CacheException(Throwable pCause) {
- super(pCause);
- }
-}
diff --git a/servlet/src/main/java/com/twelvemonkeys/servlet/cache/ServletCacheResponse.java b/servlet/src/main/java/com/twelvemonkeys/servlet/cache/ServletCacheResponse.java
deleted file mode 100755
index 25f853fb..00000000
--- a/servlet/src/main/java/com/twelvemonkeys/servlet/cache/ServletCacheResponse.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (c) 2008, Harald Kuhr
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of the copyright holder nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package com.twelvemonkeys.servlet.cache;
-
-import java.io.IOException;
-import java.io.OutputStream;
-
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * ServletCacheResponse
- *
- * @author Harald Kuhr
- * @author last modified by $Author: haku $
- * @version $Id: ServletCacheResponse.java#2 $
- */
-@Deprecated
-public final class ServletCacheResponse extends AbstractCacheResponse {
- private HttpServletResponse response;
-
- public ServletCacheResponse(HttpServletResponse pResponse) {
- response = pResponse;
- }
-
- public OutputStream getOutputStream() throws IOException {
- return response.getOutputStream();
- }
-
- @Override
- public void setStatus(int pStatusCode) {
- response.setStatus(pStatusCode);
- super.setStatus(pStatusCode);
- }
-
- @Override
- public void addHeader(String pHeaderName, String pHeaderValue) {
- response.addHeader(pHeaderName, pHeaderValue);
- super.addHeader(pHeaderName, pHeaderValue);
- }
-
- @Override
- public void setHeader(String pHeaderName, String pHeaderValue) {
- response.setHeader(pHeaderName, pHeaderValue);
- super.setHeader(pHeaderName, pHeaderValue);
- }
-
- HttpServletResponse getResponse() {
- return response;
- }
-}
diff --git a/servlet/src/main/java/com/twelvemonkeys/servlet/fileupload/FileUploadException.java b/servlet/src/main/java/com/twelvemonkeys/servlet/fileupload/FileUploadException.java
deleted file mode 100755
index c07519f6..00000000
--- a/servlet/src/main/java/com/twelvemonkeys/servlet/fileupload/FileUploadException.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2008, Harald Kuhr
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of the copyright holder nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package com.twelvemonkeys.servlet.fileupload;
-
-import javax.servlet.ServletException;
-
-/**
- * FileUploadException
- *
- * @author Harald Kuhr
- * @version $Id: FileUploadException.java#1 $
- */
-@Deprecated
-public class FileUploadException extends ServletException {
- public FileUploadException(String pMessage) {
- super(pMessage);
- }
-
- public FileUploadException(String pMessage, Throwable pCause) {
- super(pMessage, pCause);
- }
-
- public FileUploadException(Throwable pCause) {
- super(pCause.getMessage(), pCause);
- }
-}