mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: implement supported-report-set
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1753 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
be8d0714b3
commit
c5c7b157c2
@ -619,7 +619,7 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
public void sendFolderOrItem(CaldavRequest request) throws IOException {
|
public void sendFolderOrItem(CaldavRequest request) throws IOException {
|
||||||
String folderPath = request.getFolderPath();
|
String folderPath = request.getFolderPath();
|
||||||
// process request before sending response to avoid sending headers twice on error
|
// process request before sending response to avoid sending headers twice on error
|
||||||
ExchangeSession.Folder folder = session.getFolder(request.getFolderPath(null));
|
ExchangeSession.Folder folder = session.getFolder(folderPath);
|
||||||
List<ExchangeSession.Contact> contacts = null;
|
List<ExchangeSession.Contact> contacts = null;
|
||||||
List<ExchangeSession.Event> events = null;
|
List<ExchangeSession.Event> events = null;
|
||||||
List<ExchangeSession.Folder> folderList = null;
|
List<ExchangeSession.Folder> folderList = null;
|
||||||
@ -988,6 +988,9 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
if (request.hasProperty("resourcetype")) {
|
if (request.hasProperty("resourcetype")) {
|
||||||
response.appendProperty("D:resourcetype", "<D:collection/><D:principal/>");
|
response.appendProperty("D:resourcetype", "<D:collection/><D:principal/>");
|
||||||
}
|
}
|
||||||
|
if (request.hasProperty("supported-report-set")) {
|
||||||
|
response.appendProperty("D:supported-report-set", "<D:supported-report><D:report><C:calendar-multiget/></D:report></D:supported-report>");
|
||||||
|
}
|
||||||
response.endPropStatOK();
|
response.endPropStatOK();
|
||||||
response.endResponse();
|
response.endResponse();
|
||||||
response.endMultistatus();
|
response.endMultistatus();
|
||||||
|
Loading…
Reference in New Issue
Block a user