public class PropfindMethod extends WebDAVMethod
MS Office client may send 3 variant of the PROPFIND method.
WebDAVMethod.Condition
m_childToParent, m_conditions, m_davHelper, m_depth, m_parentLockInfo, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath, m_userAgent
Constructor and Description |
---|
PropfindMethod(VtiPathHelper pathHelper,
UrlHelper urlHelper) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeImpl()
Handle PROPFIND method of the MS-WDVME protocol.
|
protected void |
generateAllPropertiesResponse(org.dom4j.io.XMLWriter xml,
FileInfo nodeInfo,
boolean isDir)
Generates the XML response for a PROPFIND request that asks for all known
properties
|
protected void |
generateFakeLockDiscoveryResponseForWorkingCopy(org.dom4j.io.XMLWriter xml,
org.alfresco.service.cmr.repository.NodeRef node,
boolean isDir)
Generates the XML response snippet showing the fake lock information for the given path
|
protected void |
generateLockDiscoveryResponse(org.dom4j.io.XMLWriter xml,
FileInfo nodeInfo,
boolean isDir)
Generates the XML response snippet showing the lock information for the
given path
|
protected void |
generateResponseForNode(org.dom4j.io.XMLWriter xml,
FileInfo nodeInfo,
String path)
Generates the required response XML for the current node
|
protected org.dom4j.io.OutputFormat |
getXMLOutputFormat()
Returns the format required for an XML response.
|
protected void |
parseRequestBody()
Parse the request body
|
protected void |
parseRequestHeaders()
Parse the request headers
|
protected void |
writeLockTypes(org.dom4j.io.XMLWriter xml)
Output the supported lock types XML element
|
checkNode, checkNode, createXMLWriter, execute, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateNamespaceDeclarations, generateResponseImpl, getActionService, getAuthenticationService, getContentService, getContextPath, getDAVHelper, getDAVLockService, getDepth, getFileFolderService, getMimetypeService, getNamespaceService, getNodeForPath, getNodeLockInfo, getNodeService, getPath, getPermissionService, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getSiteId, getStatusForAccessDeniedException, getTenantDomain, getTransactionService, getURLForPath, getWorkingCopy, isReadOnly, parseDepthHeader, parseIfHeader, setDetails, shouldFlushXMLWriter, toString
public PropfindMethod(VtiPathHelper pathHelper, UrlHelper urlHelper)
protected void executeImpl() throws WebDAVServerException, Exception
Handle PROPFIND method of the MS-WDVME protocol.
executeImpl
in class WebDAVMethod
WebDAVServerException
- a general server exceptionException
- any unhandled exceptionprotected void generateResponseForNode(org.dom4j.io.XMLWriter xml, FileInfo nodeInfo, String path) throws Exception
xml
- XMLWriternodeInfo
- FileInfopath
- StringException
protected void generateAllPropertiesResponse(org.dom4j.io.XMLWriter xml, FileInfo nodeInfo, boolean isDir) throws Exception
xml
- XMLWriternodeInfo
- FileInfoisDir
- booleanException
protected void generateLockDiscoveryResponse(org.dom4j.io.XMLWriter xml, FileInfo nodeInfo, boolean isDir) throws Exception
xml
- XMLWriternodeInfo
- FileInfoisDir
- booleanException
protected void generateFakeLockDiscoveryResponseForWorkingCopy(org.dom4j.io.XMLWriter xml, org.alfresco.service.cmr.repository.NodeRef node, boolean isDir) throws Exception
xml
- XMLWriternode
- NodeRefisDir
- booleanException
protected void writeLockTypes(org.dom4j.io.XMLWriter xml)
xml
- XMLWriterprotected void parseRequestHeaders() throws WebDAVServerException
parseRequestHeaders
in class WebDAVMethod
WebDAVServerException
protected void parseRequestBody() throws WebDAVServerException
parseRequestBody
in class WebDAVMethod
WebDAVServerException
protected org.dom4j.io.OutputFormat getXMLOutputFormat()
WebDAVMethod
getXMLOutputFormat
in class WebDAVMethod
Copyright © 2005–2017 Alfresco Software. All rights reserved.