Class PropFindMethod
- java.lang.Object
-
- org.bedework.webdav.servlet.common.MethodBase
-
- org.bedework.webdav.servlet.common.PropFindMethod
-
- All Implemented Interfaces:
org.bedework.util.logging.Logged,SecureXml
public class PropFindMethod extends MethodBase
Class called to handle PROPFIND- Author:
- Mike Douglass douglm rpi.edu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropFindMethod.PropRequest-
Nested classes/interfaces inherited from class org.bedework.webdav.servlet.common.MethodBase
MethodBase.MethodInfo
-
-
Field Summary
-
Fields inherited from class org.bedework.webdav.servlet.common.MethodBase
dumpContent, hasBriefHeader, nsIntf, xml
-
-
Constructor Summary
Constructors Constructor Description PropFindMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoMethod(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voiddoNodeProperties(WebdavNsNode node, PropFindMethod.PropRequest pr)Generate response for a PROPFIND for the current node, then for the children.voidinit()Called at each requestPropFindMethod.PropRequestparseProps(Node nd)Just a list of property names in any namespace.voidprocessResp(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, int depth)PropFindMethod.PropRequesttryPropRequest(Node nd)See if the current node represents a valid propfind element and return with a request if so.-
Methods inherited from class org.bedework.webdav.servlet.common.MethodBase
addDavHeader, addHeaders, addNs, addStatus, cdataProperty, checkDepth, checkServerInfo, closeTag, defaultDepth, doPropFind, emptyTag, emptyTag, flush, getChildren, getChildrenArray, getElementContent, getLogger, getNsAbbrev, getNsIntf, getOnlyChild, getResourceUri, getStatus, init, isEmpty, openTag, openTagNoNewline, parseContent, parseContent, property, property, propertyTagVal, startEmit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
Methods inherited from interface org.bedework.webdav.servlet.common.SecureXml
parseXmlSafely
-
-
-
-
Method Detail
-
init
public void init()
Description copied from class:MethodBaseCalled at each request- Specified by:
initin classMethodBase
-
doMethod
public void doMethod(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws WebdavException- Specified by:
doMethodin classMethodBase- Parameters:
req- http requestresp- http response- Throws:
WebdavException- on fatal error
-
tryPropRequest
public PropFindMethod.PropRequest tryPropRequest(Node nd) throws WebdavException
See if the current node represents a valid propfind element and return with a request if so. Otherwise return null.- Parameters:
nd- propfind element node- Returns:
- PropRequest
- Throws:
WebdavException
-
parseProps
public PropFindMethod.PropRequest parseProps(Node nd) throws WebdavException
Just a list of property names in any namespace.- Parameters:
nd- dav:prop node- Returns:
- PropRequest
- Throws:
WebdavException
-
processResp
public void processResp(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, int depth) throws WebdavException- Parameters:
req- http requestresp- http responsedepth- from depth header- Throws:
WebdavException
-
doNodeProperties
public void doNodeProperties(WebdavNsNode node, PropFindMethod.PropRequest pr) throws WebdavException
Generate response for a PROPFIND for the current node, then for the children.- Parameters:
node- current nodepr- the prop request- Throws:
WebdavException
-
-