Package org.nuxeo.ecm.webdav.resource
Class UnknownResource
- java.lang.Object
-
- org.nuxeo.ecm.webdav.resource.AbstractResource
-
- org.nuxeo.ecm.webdav.resource.UnknownResource
-
public class UnknownResource extends AbstractResource
Resource for an unknown (ie non-existing) object. Used so that PUT / MKCOL requests can actually created a document / folder. Other requests will end up with a 404 error.
-
-
Field Summary
Fields Modifier and Type Field Description protected Backend
backend
-
Fields inherited from class org.nuxeo.ecm.webdav.resource.AbstractResource
name, parentPath, path, request
-
-
Constructor Summary
Constructors Constructor Description UnknownResource(String path, javax.servlet.http.HttpServletRequest request, Backend backend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
copy()
javax.ws.rs.core.Response
delete()
javax.ws.rs.core.Response
head()
javax.ws.rs.core.Response
mkcol()
MKCOL over a non-existing resource: create a new folder resource.javax.ws.rs.core.Response
move()
javax.ws.rs.core.Response
propfind()
javax.ws.rs.core.Response
proppatch()
javax.ws.rs.core.Response
put()
PUT over a non-existing resource: create a new file resource.-
Methods inherited from class org.nuxeo.ecm.webdav.resource.AbstractResource
getNameFromPath, getParentPath, options
-
-
-
-
Field Detail
-
backend
protected Backend backend
-
-
Method Detail
-
put
public javax.ws.rs.core.Response put() throws IOException, URISyntaxException
PUT over a non-existing resource: create a new file resource.- Throws:
IOException
URISyntaxException
-
mkcol
public javax.ws.rs.core.Response mkcol() throws IOException, URISyntaxException
MKCOL over a non-existing resource: create a new folder resource.- Throws:
IOException
URISyntaxException
-
delete
public javax.ws.rs.core.Response delete()
-
copy
public javax.ws.rs.core.Response copy()
-
move
public javax.ws.rs.core.Response move()
-
propfind
public javax.ws.rs.core.Response propfind()
-
proppatch
public javax.ws.rs.core.Response proppatch()
-
head
public javax.ws.rs.core.Response head()
-
-