First WebDav PROPFIND implementation server-side
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / dav / DavServerHandler.java
diff --git a/org.argeo.util/src/org/argeo/util/dav/DavServerHandler.java b/org.argeo.util/src/org/argeo/util/dav/DavServerHandler.java
deleted file mode 100644 (file)
index 29d689d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.argeo.util.dav;
-
-import java.io.IOException;
-
-import org.argeo.util.http.HttpMethod;
-
-import com.sun.net.httpserver.HttpExchange;
-import com.sun.net.httpserver.HttpHandler;
-
-public class DavServerHandler implements HttpHandler {
-
-       @Override
-       public void handle(HttpExchange exchange) throws IOException {
-               String method = exchange.getRequestMethod();
-               if (DavMethod.PROPFIND.name().equals(method)) {
-                       handlePROPFIND(exchange);
-               } else if (HttpMethod.GET.name().equals(method)) {
-                       handleGET(exchange);
-               } else {
-                       throw new IllegalArgumentException("Unsupported method " + method);
-               }
-
-       }
-
-       protected void handleGET(HttpExchange exchange) {
-               throw new UnsupportedOperationException();
-       }
-
-       protected DavResponse handlePROPFIND(HttpExchange exchange) {
-               throw new UnsupportedOperationException();
-       }
-
-}