Detect if collection is multiget capable or not
[jgroupdav.git] / src / main / java / net / bionicmessage / groupdav / DAVServer.java
blobf8a364b817008edfebfe930162d3ac2caadc7604
1 /*
2 * DAVServer.java
3 * Copyright 2010 Mathew McBride
5 * Redistribution and use in source and binary forms, with or without modification, are
6 * permitted provided that the following conditions are met:
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 * conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
12 * of conditions and the following disclaimer in the documentation and/or other materials
13 * provided with the distribution.
15 * THIS SOFTWARE IS PROVIDED BY Mathew McBride ``AS IS'' AND ANY EXPRESS OR IMPLIED
16 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
21 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 * The views and conclusions contained in the software and documentation are those of the
26 * authors and should not be interpreted as representing official policies, either expressed
27 * or implied, of Mathew McBride.
29 package net.bionicmessage.groupdav;
31 import java.util.List;
32 import java.util.Map;
34 public abstract interface DAVServer {
36 public abstract void setServer(String paramString)
37 throws Exception;
39 public abstract void setProperty(String paramString, Object paramObject);
41 public abstract void setAuthenticationBasic(String paramString);
43 public abstract void setAuthentication(String paramString1, String paramString2);
45 public abstract Map<String, String> listObjects(String paramString)
46 throws Exception;
48 public abstract List<GroupDAVObject> getObjects(String baseURL, List<String> paramList) throws Exception;
50 public abstract GroupDAVObject modifyObject(String paramString1, String paramString2, String paramString3, byte[] paramArrayOfByte)
51 throws Exception;
53 public abstract GroupDAVObject putObject(String paramString1, String paramString2, byte[] paramArrayOfByte)
54 throws Exception;
56 public abstract boolean deleteObject(String paramString1, String paramString2)
57 throws Exception;
59 public abstract GroupDAVObject downloadSingleObject(String paramString)
60 throws Exception;