org.apache.xindice.webadmin.webdav.components
Class Copy
java.lang.Object
org.apache.xindice.webadmin.webdav.components.Copy
- All Implemented Interfaces:
- DAVComponent
- public class Copy
- extends Object
- implements DAVComponent
This class implements the Copy command for WebDAV operations on
Xindice.
COPY commans instructs that the collection or resource be moved to
the URI specified in the Destination header. It can overwrite
existing collection/resource, and this behavior can be changed by
using Overwrite flag in request header.
COPY request for collection can have header Depth set to 0 or
infinity, where infinity means that the entire subtree of child
collections and resources will be copied to the new location,
and 0 means only collection itself will be copied.
Operation possible status codes include:
-
201 (Created) - The source resource was successfully copied. The
copy operation resulted in the creation of a new resource.
-
204 (No Content) - The source resource was successfully copied to a
pre-existing destination resource.
-
403 (Forbidden) - The source and destination URIs are the same.
-
409 (Conflict) - A resource cannot be created at the destination
until one or more intermediate collections have been created.
-
412 (Precondition Failed) - The server was unable to maintain the
liveness of the properties listed in the propertybehavior XML element
or the Overwrite header is "F" and the state of the destination
resource is non-null.
- Version:
- $Revision: 541515 $, $Date: 2007-05-24 22:45:06 -0400 (Thu, 24 May 2007) $
- Author:
- Jan Metzner, Gianugo Rabellino
Constructor Summary |
Copy()
|
Method Summary |
void |
execute(DAVRequest req,
DAVResponse res,
Location target)
Executes request to a target location, that can be either root ("/"),
collection, resource or an unknown location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Copy
public Copy()
execute
public void execute(DAVRequest req,
DAVResponse res,
Location target)
throws javax.servlet.ServletException,
IOException
- Description copied from interface:
DAVComponent
- Executes request to a target location, that can be either root ("/"),
collection, resource or an unknown location.
- Specified by:
execute
in interface DAVComponent
- Parameters:
req
- WebDAV requestres
- WebDAV servlettarget
- target location
- Throws:
javax.servlet.ServletException
IOException
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.