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.
@author
Jan Metzner
@author
Gianugo Rabellino
@version $Revision: 541515 $, $Date: 2007-05-24 22:45:06 -0400 (Thu, 24 May 2007) $