diff options
author | James Lal <james@lightsofapollo.com> | 2012-06-18 20:51:13 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-06-18 20:51:13 -0700 |
commit | a6c747412c0960331e4055eee97d8328ff88d584 (patch) | |
tree | c4a82365e592a2d1cfa46cd0f5f595dde6626ff8 /samples | |
download | jsCalDAV-a6c747412c0960331e4055eee97d8328ff88d584.tar.gz |
Initial hack
Diffstat (limited to 'samples')
-rw-r--r-- | samples/calendar-data | 11 | ||||
-rw-r--r-- | samples/get-props | 0 | ||||
-rw-r--r-- | samples/resource-type | 10 | ||||
-rw-r--r-- | samples/xml/calendar-multiget.xml | 63 | ||||
-rw-r--r-- | samples/xml/prop-get.xml | 27 | ||||
-rw-r--r-- | samples/xml/propstat-success.xml | 10 |
6 files changed, 121 insertions, 0 deletions
diff --git a/samples/calendar-data b/samples/calendar-data new file mode 100644 index 0000000..1b9ed7b --- /dev/null +++ b/samples/calendar-data @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-query xmlns:D="DAV:" + xmlns:C="urn:ietf:params:xml:ns:caldav"> + <D:prop> + <D:getetag/> + <C:calendar-data/> + </D:prop> + <C:filter> + <C:comp-filter name="VCALENDAR"/> + </C:filter> +</C:calendar-query> diff --git a/samples/get-props b/samples/get-props new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/samples/get-props diff --git a/samples/resource-type b/samples/resource-type new file mode 100644 index 0000000..a6aa471 --- /dev/null +++ b/samples/resource-type @@ -0,0 +1,10 @@ +<?xml version="1.0" ?> +<D:propfind xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:CS="http://calendarserver.org/ns/" xmlns:D="DAV:"> + <D:prop> + <D:resourcetype/> + <D:owner/> + <D:supported-report-set/> + <C:supported-calendar-component-set/> + <CS:getctag/> + </D:prop> +</D:propfind> diff --git a/samples/xml/calendar-multiget.xml b/samples/xml/calendar-multiget.xml new file mode 100644 index 0000000..9ef1aaf --- /dev/null +++ b/samples/xml/calendar-multiget.xml @@ -0,0 +1,63 @@ +<D:multistatus xmlns:D="DAV:"> + <D:response> + <D:href>/dav/calmozilla1/Calendar/calmozilla1/6e4d147f-4d75-436f-a233-976fd06fd3f7.ics</D:href> + <D:propstat> + <D:status>HTTP/1.1 200 OK</D:status> + <D:prop> + <C:calendar-data xmlns:C="urn:ietf:params:xml:ns:caldav">BEGIN:VCALENDAR + VERSION:2.0 PRODID:Zimbra-Calendar-Provider + BEGIN:VTIMEZONE TZID:Etc/GMT + BEGIN:STANDARD DTSTART:19710101T000000 + TZOFFSETTO:-0000 TZOFFSETFROM:-0000 + TZNAME:GMT END:STANDARD + END:VTIMEZONE BEGIN:VEVENT + UID:6e4d147f-4d75-436f-a233-976fd06fd3f7 SUMMARY:Foo + ORGANIZER:mailto:calmozilla1@yahoo.com DTSTART;TZID="Etc/GMT":20120629T143000 + DTEND;TZID="Etc/GMT":20120629T150000 STATUS:CONFIRMED + CLASS:PUBLIC X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY + TRANSP:OPAQUE X-MICROSOFT-DISALLOW-COUNTER:TRUE + DTSTAMP:20120616T221243Z SEQUENCE:0 + END:VEVENT END:VCALENDAR</C:calendar-data> + <D:getetag>"2-2"</D:getetag> + </D:prop> + </D:propstat> + </D:response> + <D:response> + <D:href>/dav/calmozilla1/Calendar/calmozilla1/25b74da2-47d3-4ea8-be27-774fb13041b8.ics</D:href> + <D:propstat> + <D:status>HTTP/1.1 200 OK</D:status> + <D:prop> + <C:calendar-data xmlns:C="urn:ietf:params:xml:ns:caldav">BEGIN:VCALENDAR + VERSION:2.0 PRODID:Zimbra-Calendar-Provider + BEGIN:VEVENT UID:25b74da2-47d3-4ea8-be27-774fb13041b8 + SUMMARY:Bar ORGANIZER;CN=Sahaja Lal:mailto:calmozilla1@yahoo.com + DTSTART;VALUE=DATE:20120630 DTEND;VALUE=DATE:20120701 + STATUS:CONFIRMED CLASS:PUBLIC + X-MICROSOFT-CDO-ALLDAYEVENT:TRUE X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY + TRANSP:OPAQUE X-MICROSOFT-DISALLOW-COUNTER:TRUE + DTSTAMP:20120616T221255Z SEQUENCE:0 + END:VEVENT END:VCALENDAR</C:calendar-data> + <D:getetag>"3-3"</D:getetag> + </D:prop> + </D:propstat> + </D:response> + <D:response> + <D:href>/dav/calmozilla1/Calendar/calmozilla1/a8c499cb-3cab-44d5-ab1e-18abc0f5286f.ics</D:href> + <D:propstat> + <D:status>HTTP/1.1 200 OK</D:status> + <D:prop> + <C:calendar-data xmlns:C="urn:ietf:params:xml:ns:caldav">BEGIN:VCALENDAR + VERSION:2.0 PRODID:Zimbra-Calendar-Provider + BEGIN:VEVENT UID:a8c499cb-3cab-44d5-ab1e-18abc0f5286f + SUMMARY:Baz ORGANIZER;CN=Sahaja Lal:mailto:calmozilla1@yahoo.com + DTSTART;VALUE=DATE:20120628 DTEND;VALUE=DATE:20120629 + STATUS:CONFIRMED CLASS:PUBLIC + X-MICROSOFT-CDO-ALLDAYEVENT:TRUE X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY + TRANSP:OPAQUE X-MICROSOFT-DISALLOW-COUNTER:TRUE + DTSTAMP:20120616T221305Z SEQUENCE:0 + END:VEVENT END:VCALENDAR</C:calendar-data> + <D:getetag>"4-4"</D:getetag> + </D:prop> + </D:propstat> + </D:response> +</D:multistatus> diff --git a/samples/xml/prop-get.xml b/samples/xml/prop-get.xml new file mode 100644 index 0000000..72ee984 --- /dev/null +++ b/samples/xml/prop-get.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<D:multistatus xmlns:D="DAV:"> + + <D:response> + <D:href>/calendar/dav/calmozilla1%40gmail.com/user/</D:href> + <D:propstat> + <D:status>HTTP/1.1 200 OK</D:status> + <D:prop> + <D:principal-URL> + <D:href>/calendar/dav/calmozilla1@gmail.com/user/</D:href> + </D:principal-URL> + <D:resourcetype> + <D:principal /> + <D:collection /> + </D:resourcetype> + </D:prop> + </D:propstat> + + <D:propstat> + <D:status>HTTP/1.1 404 Not Found</D:status> + <D:prop> + <A:current-user-principal xmlns:A="DAV:" /> + </D:prop> + </D:propstat> + </D:response> + +</D:multistatus> diff --git a/samples/xml/propstat-success.xml b/samples/xml/propstat-success.xml new file mode 100644 index 0000000..93f27ec --- /dev/null +++ b/samples/xml/propstat-success.xml @@ -0,0 +1,10 @@ +<D:status>HTTP/1.1 200 OK</D:status> +<D:prop> + <D:principal-URL> + <D:href>/calendar/dav/calmozilla1@gmail.com/user/</D:href> + </D:principal-URL> + <D:resourcetype> + <D:principal /> + <D:collection /> + </D:resourcetype> +</D:prop> |