01: // DAVResponse.java
02: // $Id: DAVResponse.java,v 1.5 2000/10/12 16:19:20 bmahe Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 2000.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05: package org.w3c.www.webdav.xml;
06:
07: import java.util.Date;
08: import java.util.Vector;
09:
10: import org.w3c.dom.Element;
11:
12: /**
13: * @version $Revision: 1.5 $
14: * @author Benoît Mahé (bmahe@w3.org)
15: */
16: public class DAVResponse extends DAVNode {
17:
18: //
19: // Response
20: //
21:
22: public String getHref() {
23: return getTextChildValue(HREF_NODE);
24: }
25:
26: public String[] getHrefs() {
27: return getMultipleTextChildValue(HREF_NODE);
28: }
29:
30: public String getStatus() {
31: return getTextChildValue(STATUS_NODE);
32: }
33:
34: public String getDescription() {
35: return getTextChildValue(RESPONSEDESC_NODE);
36: }
37:
38: public void setDescription(String descr) {
39: addDAVNode(RESPONSEDESC_NODE, descr);
40: }
41:
42: //
43: // Propstat
44: //
45: public DAVPropStat[] getPropStats() {
46: Vector v = getDAVElementsByTagName(PROPSTAT_NODE);
47: DAVPropStat dps[] = new DAVPropStat[v.size()];
48: for (int i = 0; i < v.size(); i++) {
49: dps[i] = new DAVPropStat((Element) v.elementAt(i));
50: }
51: return dps;
52: }
53:
54: DAVResponse(Element element) {
55: super(element);
56: }
57:
58: }
|