io.milton.http.carddav.AddressBookMultiGetReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milton-server-ent Show documentation
Show all versions of milton-server-ent Show documentation
Milton Enterprise: Supports DAV level 2 and above, including Caldav and Carddav. Available on AGPL or
commercial licenses
The newest version!
/*
* Copyright 2012 McEvoy Software Ltd.
*
*/
package io.milton.http.carddav;
import io.milton.http.ResourceFactory;
import io.milton.http.report.AbstractMultiGetReport;
import io.milton.http.webdav.PropFindPropertyBuilder;
import io.milton.http.webdav.PropFindXmlGenerator;
import javax.xml.namespace.QName;
/**
* The CARDDAV:addressbook-multiget REPORT is used to retrieve specific
* address object resources from within a collection, if the Request-URI
* is a collection, or to retrieve a specific address object resource,
* if the Request-URI is an address object resource. This report is
* similar to the CARDDAV:addressbook-query REPORT (see Section 8.6),
* except that it takes a list of DAV:href elements instead of a
* CARDDAV:filter element to determine which address object resources to
* return.
*
* >> Request <<
* REPORT /home/bernard/addressbook/ HTTP/1.1
* Host: addressbook.example.com
* Depth: 1
* Content-Type: text/xml; charset="utf-8"
* Content-Length: xxxx
*
*
*
*
*
*
*
*
*
*
*
*
* /home/bernard/addressbook/vcf102.vcf
* /home/bernard/addressbook/vcf1.vcf
*
*
*
* @author nabil.shams
*/
public class AddressBookMultiGetReport extends AbstractMultiGetReport {
public AddressBookMultiGetReport(ResourceFactory resourceFactory, PropFindPropertyBuilder propertyBuilder, PropFindXmlGenerator xmlGenerator) {
super(resourceFactory, propertyBuilder, xmlGenerator);
}
@Override
public String getName() {
return "addressbook-multiget";
}
@Override
public QName getQualifiedName()
{
return new QName(CardDavProtocol.CARDDAV_NS, getName());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy