1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.danube.webdav.xml.dav.request;
14
15 import org.abstracthorizon.danube.webdav.xml.XMLParserHandler;
16 import org.abstracthorizon.danube.webdav.xml.dav.DAVAbstractXMLParser;
17 import org.abstracthorizon.danube.webdav.xml.dav.DAVFactory;
18 import org.abstracthorizon.danube.webdav.xml.dav.RequestProp;
19
20 import org.xml.sax.Attributes;
21 import org.xml.sax.SAXException;
22
23
24
25
26
27
28 public class Remove extends DAVAbstractXMLParser {
29
30
31 protected RequestProp prop;
32
33
34
35
36
37
38 public Remove(XMLParserHandler parent, DAVFactory factory) {
39 super(parent, factory);
40 prop = factory.newProp(this);
41 }
42
43 @Override
44 public Object start(Object current, String tag, Attributes attributes) throws SAXException {
45 if ("prop".equals(tag)) {
46 return prop;
47 } else {
48 return super.start(current, tag, attributes);
49 }
50 }
51
52 @Override
53 public String toString() {
54 return "Remove[" + prop + "]";
55 }
56 }