public class ExistingResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
protected Backend |
backend |
protected DocumentModel |
doc |
static String |
READONLY_TOKEN |
name, parentPath, path, request
Modifier | Constructor and Description |
---|---|
protected |
ExistingResource(String path,
DocumentModel doc,
javax.servlet.http.HttpServletRequest request,
Backend backend) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
copy(String dest,
String overwrite) |
javax.ws.rs.core.Response |
delete() |
protected net.java.dev.webdav.jaxrs.xml.properties.LockDiscovery |
getLockDiscovery(DocumentModel doc,
javax.ws.rs.core.UriInfo uriInfo) |
protected PropStatBuilderExt |
getPropStatBuilderExt(DocumentModel doc,
javax.ws.rs.core.UriInfo uriInfo) |
protected Date |
getTimePropertyWrapper(DocumentModel doc,
String name) |
javax.ws.rs.core.Response |
head() |
javax.ws.rs.core.Response |
lock(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
mkcol()
We can't MKCOL over an existing resource.
|
javax.ws.rs.core.Response |
move(String dest,
String overwrite) |
javax.ws.rs.core.Response |
proppatch(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
unlock() |
getNameFromPath, getParentPath, options
public static final String READONLY_TOKEN
protected DocumentModel doc
protected ExistingResource(String path, DocumentModel doc, javax.servlet.http.HttpServletRequest request, Backend backend)
public javax.ws.rs.core.Response delete()
public javax.ws.rs.core.Response copy(@HeaderParam(value="Destination") String dest, @HeaderParam(value="Overwrite") String overwrite)
public javax.ws.rs.core.Response move(@HeaderParam(value="Destination") String dest, @HeaderParam(value="Overwrite") String overwrite)
public javax.ws.rs.core.Response proppatch(@Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response mkcol()
public javax.ws.rs.core.Response head()
public javax.ws.rs.core.Response lock(@Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response unlock()
protected net.java.dev.webdav.jaxrs.xml.properties.LockDiscovery getLockDiscovery(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo)
protected PropStatBuilderExt getPropStatBuilderExt(DocumentModel doc, javax.ws.rs.core.UriInfo uriInfo) throws org.apache.commons.httpclient.URIException
org.apache.commons.httpclient.URIException
protected Date getTimePropertyWrapper(DocumentModel doc, String name)
Copyright © 2016 Nuxeo SA. All rights reserved.