public class PropFindMethod extends WebDAVMethod
WebDAVMethod.Condition
Modifier and Type | Field and Description |
---|---|
protected static int |
FIND_PROPS |
protected static int |
GET_ALL_PROPS |
protected static int |
GET_NAMED_PROPS |
protected int |
m_mode |
protected HashMap<String,String> |
m_namespaces |
protected ArrayList<WebDAVProperty> |
m_properties |
logger, 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()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected WebDAVProperty |
createProperty(Node node)
Creates a WebDAVProperty from the given XML node
|
protected void |
executeImpl()
Execute the main WebDAV request processing
|
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 |
generateFindPropertiesResponse(org.dom4j.io.XMLWriter xml,
FileInfo nodeInfo,
boolean isDir)
Generates the XML response for a PROPFIND request that asks for a list of
all known properties
|
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
|
int |
getMode()
Return the find mode
|
protected org.dom4j.io.OutputFormat |
getXMLOutputFormat()
Returns the format required for an XML response.
|
protected boolean |
isReadOnly()
Override and return true if the method is a query method only.
|
protected Map<org.alfresco.service.namespace.QName,String> |
loadDeadProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Loads all dead properties persisted on the node
|
protected void |
parseRequestBody()
Parse the request body
|
protected void |
parseRequestHeaders()
Parse the request headers
|
protected void |
persistDeadProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,String> deadProperties)
Persists dead properties for specified resource
|
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, parseDepthHeader, parseIfHeader, setDetails, shouldFlushXMLWriter, toString
protected static final int GET_ALL_PROPS
protected static final int GET_NAMED_PROPS
protected static final int FIND_PROPS
protected int m_mode
protected ArrayList<WebDAVProperty> m_properties
public final int getMode()
protected void parseRequestHeaders() throws WebDAVServerException
parseRequestHeaders
in class WebDAVMethod
WebDAVServerException
protected void parseRequestBody() throws WebDAVServerException
parseRequestBody
in class WebDAVMethod
WebDAVServerException
protected boolean isReadOnly()
WebDAVMethod
isReadOnly
in class WebDAVMethod
protected void executeImpl() throws WebDAVServerException, Exception
executeImpl
in class WebDAVMethod
WebDAVServerException
Exception
- any unhandled exceptionprotected org.dom4j.io.OutputFormat getXMLOutputFormat()
WebDAVMethod
getXMLOutputFormat
in class WebDAVMethod
protected WebDAVProperty createProperty(Node node)
protected 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 generateFindPropertiesResponse(org.dom4j.io.XMLWriter xml, FileInfo nodeInfo, boolean isDir)
xml
- XMLWriternodeInfo
- FileInfoisDir
- booleanprotected void generateLockDiscoveryResponse(org.dom4j.io.XMLWriter xml, FileInfo nodeInfo, boolean isDir) throws Exception
xml
- XMLWriternodeInfo
- FileInfoisDir
- booleanException
protected void writeLockTypes(org.dom4j.io.XMLWriter xml)
xml
- XMLWriterprotected Map<org.alfresco.service.namespace.QName,String> loadDeadProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefprotected void persistDeadProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,String> deadProperties)
nodeRef
- specified resourcedeadProperties
- the properties to persistCopyright © 2005–2017 Alfresco Software. All rights reserved.