org.apache.xindice.webadmin.webdav.components
Class Move
java.lang.Object
org.apache.xindice.webadmin.webdav.components.Move
- All Implemented Interfaces:
- DAVComponent
- public class Move
- extends Object
- implements DAVComponent
This class implements the Move command for WebDAV operations on
Xindice.
MOVE commans instructs that the collection or resource be moved to the
URI specified in the Destination header. In case of collection, all
resources and child collections are to be moved to locations relative
to it, recursively through all levels of the collection hierarchy.
MOVE can overwrite existing resource/collection, and this behavior can
be changed by using Overwrite flag in request header.
For collections, Depth header cannot have any value other than infinity.
Operation possible status codes include:
-
201 (Created) - The source resource was successfully moved, and a new
resource was created at the destination.
204 (No Content) - The source resource was successfully moved 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 |
Move()
|
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 |
Move
public Move()
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.