1 /*
2 * Copyright (c) 2006-2007 Creative Sphere Limited.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *
10 * Creative Sphere - initial API and implementation
11 *
12 */
13 package org.abstracthorizon.danube.webdav.fs.properties;
14
15 import org.abstracthorizon.danube.http.Status;
16 import org.abstracthorizon.danube.webdav.ResourceAdapter;
17 import org.abstracthorizon.danube.webdav.xml.XMLParserHandler;
18 import org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty;
19
20 /**
21 * This implementation does nothing
22 *
23 * @author Daniel Sendula
24 */
25 public class Source extends org.abstracthorizon.danube.webdav.xml.dav.request.properties.Source {
26
27 /**
28 * Constructor
29 * @param parent parser handler
30 */
31 public Source(XMLParserHandler parent) {
32 super(parent);
33 }
34
35 /**
36 * Returns {@link org.abstracthorizon.danube.webdav.xml.dav.response.properties.Source} with
37 * {@link Status#OK} value.
38 * @param adapter adapter
39 * @param resource a file
40 * @return request property
41 */
42 public ResponseProperty processResponse(ResourceAdapter adapter, Object resource) {
43 return new org.abstracthorizon.danube.webdav.xml.dav.response.properties.Source(Status.OK);
44 }
45 }
46