public class DoPropfind extends WebDavMethod
BUF_SIZE, CREATION_DATE_FORMAT, DEFAULT_TIMEOUT, INFINITY, LAST_MODIFIED_DATE_FORMAT, MAX_TIMEOUT, TEMP_TIMEOUT, TEMPORARY| Constructor and Description |
|---|
DoPropfind(WebDavStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(RequestContext requestContext)
To be implemented by concrete method.
|
protected Map<String,String> |
getNamespaces() |
protected boolean |
handleExtension(RequestContext requestContext,
XMLWriter writer,
String contextPath,
Resource res,
String property) |
protected void |
parseProperties(RequestContext requestContext,
XMLWriter writer,
Resource res,
String path,
int type,
List<String> propertiesVector,
int depth)
Propfind helper method.
|
protected void |
recursiveParseProperties(RequestContext requestContext,
XMLWriter writer,
Resource res,
String path,
int propertyFindType,
List<String> properties,
int currentDepth,
int depth)
goes recursive through all folders.
|
protected void |
writeCollectionType(RequestContext requestContext,
XMLWriter writer,
Resource res) |
protected void |
writeLockDiscoveryElements(RequestContext requestContext,
XMLWriter writer,
String path,
int _depth) |
protected void |
writeSupportedLockElements(RequestContext requestContext,
XMLWriter writer,
String path) |
checkLocks, determineMethodsAllowed, encodeURL, getCleanPath, getDefaultMethodsAllowed, getDepth, getDocumentBuilder, getETag, getFolderMethodsAllowed, getHRef, getLockIdFromIfHeader, getLockIdFromLockTokenHeader, getNullResourceMethodsAllowed, getParentPath, getRelativePath, getRelativePath, getResourceMethodsAllowed, getVersion, sendReportpublic DoPropfind(WebDavStore store)
protected boolean handleExtension(RequestContext requestContext, XMLWriter writer, String contextPath, Resource res, String property)
protected void writeCollectionType(RequestContext requestContext, XMLWriter writer, Resource res)
public void execute(RequestContext requestContext) throws IOException, LockFailedException
WebDavMethodexecute in class WebDavMethodIOExceptionLockFailedExceptionprotected void recursiveParseProperties(RequestContext requestContext, XMLWriter writer, Resource res, String path, int propertyFindType, List<String> properties, int currentDepth, int depth) throws WebdavException
path - the current pathreq - HttpServletRequestwriter - propertyFindType - properties - currentDepth - depth of the propfindIOException - if an error in the underlying store occursWebdavExceptionprotected void parseProperties(RequestContext requestContext, XMLWriter writer, Resource res, String path, int type, List<String> propertiesVector, int depth) throws WebdavException
req - The servlet requestwriter - XML response to the Propfind requestpath - Path of the current resourcetype - Propfind typepropertiesVector - If the propfind type is find properties by name, then this Vector
contains those propertiesWebdavExceptionprotected void writeSupportedLockElements(RequestContext requestContext, XMLWriter writer, String path)
protected void writeLockDiscoveryElements(RequestContext requestContext, XMLWriter writer, String path, int _depth)
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.