All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.milton.http.carddav.AddressBookMultiGetReport Maven / Gradle / Ivy

Go to download

Milton Enterprise: Supports DAV level 2 and above, including Caldav and Carddav. Available on AGPL or commercial licenses

There is a newer version: 4.0.5.2400
Show 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