public class PropPatchMethod extends PropFindMethod
Modifier and Type | Class and Description |
---|---|
protected class |
PropPatchMethod.PropertyAction
Stores information about PROPPATCH action(set or remove) an according property.
|
WebDAVMethod.Condition
Modifier and Type | Field and Description |
---|---|
protected ArrayList<PropPatchMethod.PropertyAction> |
m_propertyActions |
FIND_PROPS, GET_ALL_PROPS, GET_NAMED_PROPS, m_mode, m_namespaces, 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 |
---|
PropPatchMethod() |
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 |
generateError(org.dom4j.io.XMLWriter xml)
Generates the error tag
|
protected void |
generatePropertyResponse(org.dom4j.io.XMLWriter xml,
WebDAVProperty property,
int status,
String description)
Generates the XML response for a PROPFIND request that asks for a list of
all known properties
|
protected void |
generateResponseImpl()
Does nothing unless overridden - for reasons of backwards compatibility.
|
protected boolean |
isReadOnly()
Override and return true if the method is a query method only.
|
protected void |
parseRequestBody()
Parse the request body
|
protected void |
parseRequestHeaders()
Parse the request headers
|
protected void |
patchProperties(FileInfo nodeInfo,
String path) |
generateAllPropertiesResponse, generateFindPropertiesResponse, generateLockDiscoveryResponse, generateResponseForNode, getMode, getXMLOutputFormat, loadDeadProperties, persistDeadProperties, writeLockTypes
checkNode, checkNode, createXMLWriter, execute, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateNamespaceDeclarations, 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 ArrayList<PropPatchMethod.PropertyAction> m_propertyActions
protected boolean isReadOnly()
WebDAVMethod
isReadOnly
in class PropFindMethod
protected void executeImpl() throws WebDAVServerException, Exception
PropFindMethod
executeImpl
in class PropFindMethod
WebDAVServerException
- a general server exceptionException
- any unhandled exceptionprotected void generateResponseImpl() throws Exception
WebDAVMethod
WebDAVMethod.executeImpl()
method
and should NOT contain any code that writes to the response. Conversely response generation logic
should NOT contain any code relating to the desired effect of the WebDAV method (e.g. setting properties
on a node) and should be contained purely within this method.
Older methods, until refactored will not override this method, relying only on WebDAVMethod.executeImpl()
.
generateResponseImpl
in class WebDAVMethod
Exception
protected void parseRequestBody() throws WebDAVServerException
parseRequestBody
in class PropFindMethod
WebDAVServerException
protected void parseRequestHeaders() throws WebDAVServerException
parseRequestHeaders
in class PropFindMethod
WebDAVServerException
protected WebDAVProperty createProperty(Node node)
createProperty
in class PropFindMethod
protected void patchProperties(FileInfo nodeInfo, String path) throws WebDAVServerException
WebDAVServerException
protected void generatePropertyResponse(org.dom4j.io.XMLWriter xml, WebDAVProperty property, int status, String description)
xml
- XMLWriterproperty
- WebDAVPropertystatus
- intdescription
- Stringprotected void generateError(org.dom4j.io.XMLWriter xml)
xml
- XMLWriterCopyright © 2005–2017 Alfresco Software. All rights reserved.