full debug trace on caldav

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@252 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2008-12-24 15:52:13 +00:00
parent 9f0981b294
commit 7b33fce14b
1 changed files with 5 additions and 1 deletions

View File

@ -157,6 +157,9 @@ public class CaldavConnection extends AbstractConnection {
public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
int depth = getDepth(headers);
// full debug trace
DavGatewayTray.debug("command: " + command + " " + path + " Depth: " + depth + "\n" + body);
if ("OPTIONS".equals(command)) {
sendOptions();
} else if ("PROPFIND".equals(command)
@ -417,7 +420,6 @@ public class CaldavConnection extends AbstractConnection {
buffer.append(" <D:status>HTTP/1.1 200 OK</D:status>\n");
buffer.append(" </D:propstat>\n");
buffer.append(" </D:response>\n");
}
}
@ -472,6 +474,8 @@ public class CaldavConnection extends AbstractConnection {
}
sendClient("");
if (content != null && content.length() > 0) {
// full debug trace
DavGatewayTray.debug("> "+content);
sendClient(content.getBytes("UTF-8"));
}
}