import java.io.IOException;
+import org.argeo.util.http.HttpMethod;
+
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
String method = exchange.getRequestMethod();
if (DavMethod.PROPFIND.name().equals(method)) {
handle(exchange);
+ } else if (HttpMethod.GET.name().equals(method)) {
+ exchange.getResponseBody().write("Hello Dav!".getBytes());
} else {
throw new IllegalArgumentException("Unsupported method " + method);
}