01: // DAVMultiStatus.java
02: // $Id: DAVMultiStatus.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.Vector;
08:
09: import org.w3c.dom.Element;
10: import org.w3c.dom.Node;
11:
12: /**
13: * @version $Revision: 1.5 $
14: * @author Benoît Mahé (bmahe@w3.org)
15: */
16: public class DAVMultiStatus extends DAVNode {
17:
18: public DAVResponse[] getDAVResponses() {
19: Vector list = getDAVElementsByTagName(RESPONSE_NODE);
20: int len = list.size();
21: DAVResponse responses[] = new DAVResponse[len];
22: for (int i = 0; i < len; i++) {
23: responses[i] = new DAVResponse((Element) list.elementAt(i));
24: }
25: return responses;
26: }
27:
28: public String getResponseDescription() {
29: Node node = getDAVNode(RESPONSEDESC_NODE);
30: if (node != null) {
31: return getTextChildValue(node);
32: }
33: return null;
34: }
35:
36: DAVMultiStatus(Element element) {
37: super(element);
38: }
39:
40: }
|