]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.util/src/org/argeo/util/dav/DavResponse.java
Remove UI dependencies to JCR.
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / dav / DavResponse.java
1 package org.argeo.util.dav;
2
3 import java.util.ArrayList;
4 import java.util.HashMap;
5 import java.util.HashSet;
6 import java.util.List;
7 import java.util.Map;
8 import java.util.Set;
9
10 import javax.xml.namespace.QName;
11
12 public class DavResponse {
13 final static String MODE_DAV_NAMESPACE = "http://apache.org/dav/props/";
14
15 private String href;
16 private boolean collection;
17 private Set<QName> propertyNames = new HashSet<>();
18 private Map<QName, String> properties = new HashMap<>();
19 private List<QName> resourceTypes = new ArrayList<>();
20
21 public Map<QName, String> getProperties() {
22 return properties;
23 }
24
25 void setHref(String href) {
26 this.href = href;
27 }
28
29 public String getHref() {
30 return href;
31 }
32
33 public boolean isCollection() {
34 return collection;
35 }
36
37 void setCollection(boolean collection) {
38 this.collection = collection;
39 }
40
41 public List<QName> getResourceTypes() {
42 return resourceTypes;
43 }
44
45 public Set<QName> getPropertyNames() {
46 return propertyNames;
47 }
48
49 }