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 java.util.Map<java.lang.String,java.lang.String> |
getNamespaces() |
protected boolean |
handleExtension(RequestContext requestContext,
XMLWriter writer,
java.lang.String contextPath,
Resource res,
java.lang.String property) |
protected void |
parseProperties(RequestContext requestContext,
XMLWriter writer,
Resource res,
java.lang.String path,
int type,
java.util.List<java.lang.String> propertiesVector,
int depth)
Propfind helper method.
|
protected void |
recursiveParseProperties(RequestContext requestContext,
XMLWriter writer,
Resource res,
java.lang.String path,
int propertyFindType,
java.util.List<java.lang.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,
java.lang.String path,
int _depth)
Write supported lock discovery elements.
|
protected void |
writeSupportedLockElements(RequestContext requestContext,
XMLWriter writer,
java.lang.String path)
Write supported lock elements.
|
protected void |
writeSupportedPrivilegeElements(RequestContext requestContext,
XMLWriter writer,
java.lang.String path)
Write supported privilege elements.
|
checkLocks, determineMethodsAllowed, encodeURL, getCleanPath, getDefaultMethodsAllowed, getDepth, getDocumentBuilder, getETag, getFolderMethodsAllowed, getHRef, getLockIdFromIfHeader, getLockIdFromLockTokenHeader, getNullResourceMethodsAllowed, getParentPath, getRelativePath, getRelativePath, getResourceMethodsAllowed, getVersion, sendReport
public DoPropfind(WebDavStore store)
protected boolean handleExtension(RequestContext requestContext, XMLWriter writer, java.lang.String contextPath, Resource res, java.lang.String property)
protected void writeCollectionType(RequestContext requestContext, XMLWriter writer, Resource res)
protected java.util.Map<java.lang.String,java.lang.String> getNamespaces()
public void execute(RequestContext requestContext) throws java.io.IOException, LockFailedException
WebDavMethod
execute
in class WebDavMethod
java.io.IOException
LockFailedException
protected void recursiveParseProperties(RequestContext requestContext, XMLWriter writer, Resource res, java.lang.String path, int propertyFindType, java.util.List<java.lang.String> properties, int currentDepth, int depth) throws WebdavException
path
- the current pathreq
- HttpServletRequestwriter
- propertyFindType
- properties
- currentDepth
- depth of the propfindjava.io.IOException
- if an error in the underlying store occursWebdavException
protected void parseProperties(RequestContext requestContext, XMLWriter writer, Resource res, java.lang.String path, int type, java.util.List<java.lang.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 propertiesWebdavException
protected void writeSupportedPrivilegeElements(RequestContext requestContext, XMLWriter writer, java.lang.String path)
requestContext
- writer
- path
- protected void writeSupportedLockElements(RequestContext requestContext, XMLWriter writer, java.lang.String path)
requestContext
- writer
- path
- protected void writeLockDiscoveryElements(RequestContext requestContext, XMLWriter writer, java.lang.String path, int _depth)
requestContext
- writer
- path
- _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.