01: /*
02: /*
03: * The contents of this file are subject to the
04: * Mozilla Public License Version 1.1 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
07: *
08: * Software distributed under the License is distributed on an "AS IS"
09: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
10: * See the License for the specific language governing rights and
11: * limitations under the License.
12: *
13: * The Initial Developer of the Original Code is Simulacra Media Ltd.
14: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
15: *
16: * All Rights Reserved.
17: *
18: * Contributor(s):
19: */
20: package org.openharmonise.webdav.client.methods;
21:
22: import org.openharmonise.webdav.client.*;
23:
24: /**
25: * Copy method.
26: *
27: * @author Matthew Large
28: * @version $Revision: 1.1 $
29: *
30: */
31: public class Copy extends AbstractWebDAVMethod {
32:
33: /**
34: * Name of method.
35: */
36: public static String METHOD_NAME = "COPY";
37:
38: /**
39: * Creates a new copy method.
40: *
41: * @param sURL URL for request
42: * @param sDestination Destination URL
43: */
44: public Copy(String sURL, String sDestination) {
45: super(METHOD_NAME, sURL);
46: super.setDepth(AbstractWebDAVMethod.DEPTH_NONE);
47: super.setDestination(sDestination);
48: }
49:
50: }
|