Xindice API
version 1.2m1

org.apache.xindice.webadmin.webdav.components
Class Copy

java.lang.Object
  extended byorg.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:

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
 

Constructor Detail

Copy

public Copy()
Method Detail

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 request
res - WebDAV servlet
target - target location
Throws:
javax.servlet.ServletException
IOException

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.