1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.danube.webdav.xml.dav.request.properties;
14
15 import org.abstracthorizon.danube.webdav.ResourceAdapter;
16 import org.abstracthorizon.danube.webdav.xml.XMLParserHandler;
17 import org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty;
18
19 import org.xml.sax.SAXException;
20
21
22
23
24
25
26 public class CreationDate extends RequestProperty {
27
28
29 protected String dateString;
30
31
32
33
34
35 public CreationDate(XMLParserHandler parent) {
36 super(parent);
37 }
38
39 @Override
40 public Object end(Object current, String tag, String value) throws SAXException {
41 dateString = value;
42 return super.end(current, tag, value);
43 }
44
45
46
47
48
49 public String asString() {
50 return dateString;
51 }
52
53
54
55
56
57
58
59 public ResponseProperty processResponse(ResourceAdapter adapter, Object resource) {
60 return new org.abstracthorizon.danube.webdav.xml.dav.response.properties.CreationDate(adapter.resourceCreated(resource));
61 }
62
63 @Override
64 public String toString() {
65 return "CreationDate[" + dateString + "]";
66 }
67 }