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 java.util.ArrayList |
m_propertyActions |
FIND_PROPS, GET_ALL_PROPS, GET_NAMED_PROPS, m_mode, m_namespaces, m_propertieslogger, 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(org.w3c.dom.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,
java.lang.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(org.alfresco.service.cmr.model.FileInfo nodeInfo,
java.lang.String path) |
generateAllPropertiesResponse, generateFindPropertiesResponse, generateLockDiscoveryResponse, generateResponseForNode, getMode, getXMLOutputFormat, writeLockTypescheckNode, 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, toStringprotected boolean isReadOnly()
WebDAVMethodisReadOnly in class PropFindMethodprotected void executeImpl()
throws WebDAVServerException,
java.lang.Exception
PropFindMethodexecuteImpl in class PropFindMethodWebDAVServerException - a general server exceptionjava.lang.Exception - any unhandled exceptionprotected void generateResponseImpl()
throws java.lang.Exception
WebDAVMethodWebDAVMethod.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 WebDAVMethodjava.lang.Exceptionprotected void parseRequestBody()
throws WebDAVServerException
parseRequestBody in class PropFindMethodWebDAVServerExceptionprotected void parseRequestHeaders()
throws WebDAVServerException
parseRequestHeaders in class PropFindMethodWebDAVServerExceptionprotected WebDAVProperty createProperty(org.w3c.dom.Node node)
createProperty in class PropFindMethodprotected void patchProperties(org.alfresco.service.cmr.model.FileInfo nodeInfo,
java.lang.String path)
throws WebDAVServerException
WebDAVServerExceptionprotected void generatePropertyResponse(org.dom4j.io.XMLWriter xml,
WebDAVProperty property,
int status,
java.lang.String description)
xml - XMLWriternode - NodeRefisDir - booleanprotected void generateError(org.dom4j.io.XMLWriter xml)
xml - XMLWriterCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.