after playing around with jackrabbit, I found that the GenerateQuery
class allowed me to create Report requests with jackrabbit
ReportMethod ;)
That's *cool* ;)
The code is easy even if not really functional as the old one (hey,
I'm just playing):
//query for vevents
CalendarQuery cq = new GenerateQuery("VEVENT",
"").generateQuery();
//convert the stuff for jackrabbit
Document document = cq.createNewDocument(XMLUtils
.getDOMImplementation());
Element e = cq.outputDOM(document);
// create a jackrabbit report request
ReportInfo reportinfo = new ReportInfo(e,
DepthHeader.DEPTH_INFINITY);
ReportMethod report = new
ReportMethod("http://hub.chandlerproject.org/dav/caldav4j/",
reportinfo);
// execute it
int status = client.executeMethod(report);
Peace,
R.