package org.argeo.util.dav; import java.io.IOException; 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)) { handle(exchange); } else { throw new IllegalArgumentException("Unsupported method " + method); } } protected DavResponse handlePROPFIND(HttpExchange exchange) { return null; } }