org.apache.xindice.webadmin.webdav.components
Class Mkcol
java.lang.Object
org.apache.xindice.webadmin.webdav.components.Mkcol
- All Implemented Interfaces:
- DAVComponent
- public class Mkcol
- extends Object
- implements DAVComponent
This class implements the Mkcol command for WebDAV operations on
Xindice.
MKCOL command creates new collection at a specified location. There must be
no existing collection at the specified location. Newly created collection
will be empty. WebDAV specification allows request to have a body that may
contain instructions for creating child resources, but this behavior is
not suppoted.
Operation possible status codes include:
-
201 (Created) - The collection or structured resource was created in
its entirety.
-
403 (Forbidden) - This indicates at least one of two conditions: 1)
the server does not allow the creation of collections at the given
location in its namespace, or 2) the parent collection of the
Request-URI exists but cannot accept members.
-
405 (Method Not Allowed) - MKCOL can only be executed on a
deleted/non-existent resource.
-
409 (Conflict) - A collection cannot be made at the Request-URI until
one or more intermediate collections have been created.
-
415 (Unsupported Media Type)- The server does not support the request
type of the body.
- Version:
- $Revision: 541515 $, $Date: 2007-05-24 22:45:06 -0400 (Thu, 24 May 2007) $
- Author:
- Jan Metzner, Gianugo Rabellino
Constructor Summary |
Mkcol()
|
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 |
Mkcol
public Mkcol()
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.