1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.danube.webdav.xml.dav.response;
14
15 import org.abstracthorizon.danube.webdav.util.NamespacesProvider;
16 import org.abstracthorizon.danube.webdav.xml.XMLRenderer;
17 import org.abstracthorizon.danube.webdav.xml.common.XMLUtils;
18 import org.abstracthorizon.danube.webdav.xml.dav.DAVNamespace;
19
20 import java.io.PrintWriter;
21
22
23
24
25
26
27 public class ResponseDescription implements XMLRenderer {
28
29
30 public static final String TAG_NAME = "responsedescription";
31
32
33 protected String responseDescription;
34
35
36
37
38
39 public ResponseDescription(String responseDescription) {
40 this.responseDescription = responseDescription;
41 }
42
43
44
45
46
47 public String getResponseDescription() {
48 return responseDescription;
49 }
50
51 @Override
52 public String toString() {
53 return "ResponseDescription[" + responseDescription + "]";
54 }
55
56
57
58
59
60
61 public void render(PrintWriter writer, NamespacesProvider provider) {
62 writer.println(XMLUtils.createTag(provider, DAVNamespace.DAV_NAMESPACE_URL, TAG_NAME, responseDescription));
63 }
64 }