HTTP GET support for ACR.
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / dav / DavServerHandler.java
index f9fba4761c62b26a91616f3afa64a0e69609ef75..29d689dbb233c7dca5a38163f6b3a8e281c4d33d 100644 (file)
@@ -13,17 +13,21 @@ public class DavServerHandler implements HttpHandler {
        public void handle(HttpExchange exchange) throws IOException {
                String method = exchange.getRequestMethod();
                if (DavMethod.PROPFIND.name().equals(method)) {
-                       handle(exchange);
+                       handlePROPFIND(exchange);
                } else if (HttpMethod.GET.name().equals(method)) {
-                       exchange.getResponseBody().write("Hello Dav!".getBytes());
+                       handleGET(exchange);
                } else {
                        throw new IllegalArgumentException("Unsupported method " + method);
                }
 
        }
 
+       protected void handleGET(HttpExchange exchange) {
+               throw new UnsupportedOperationException();
+       }
+
        protected DavResponse handlePROPFIND(HttpExchange exchange) {
-               return null;
+               throw new UnsupportedOperationException();
        }
 
 }