org.alfresco.repo.webdav
Class PropPatchMethod

java.lang.Object
  extended by org.alfresco.repo.webdav.WebDAVMethod
      extended by org.alfresco.repo.webdav.PropFindMethod
          extended by org.alfresco.repo.webdav.PropPatchMethod

public class PropPatchMethod
extends PropFindMethod

Implements the WebDAV PROPPATCH method


Nested Class Summary
protected  class PropPatchMethod.PropertyAction
          Stores information about PROPPATCH action(set or remove) an according property.
 
Nested classes/interfaces inherited from class org.alfresco.repo.webdav.WebDAVMethod
WebDAVMethod.Condition
 
Field Summary
protected  java.util.ArrayList m_propertyActions
           
 
Fields inherited from class org.alfresco.repo.webdav.PropFindMethod
FIND_PROPS, GET_ALL_PROPS, GET_NAMED_PROPS, m_mode, m_namespaces, m_properties
 
Fields inherited from class org.alfresco.repo.webdav.WebDAVMethod
logger, m_childToParent, m_conditions, m_davHelper, m_depth, m_parentLockInfo, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath, m_userAgent
 
Constructor Summary
PropPatchMethod()
           
 
Method Summary
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 generateResponse(org.dom4j.io.XMLWriter xml, org.alfresco.service.cmr.model.FileInfo nodeInfo, java.lang.String path)
          Generates the required response XML
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
 
Methods inherited from class org.alfresco.repo.webdav.PropFindMethod
createXMLWriter, generateAllPropertiesResponse, generateFindPropertiesResponse, generateLockDiscoveryResponse, generateResponseForNode, getMode, writeLockTypes
 
Methods inherited from class org.alfresco.repo.webdav.WebDAVMethod
checkNode, checkNode, execute, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateNamespaceDeclarations, getActionService, getAuthenticationService, getContentService, getDAVHelper, getDepth, getFileFolderService, getLockService, getMimetypeService, getNamespaceService, getNodeForPath, getNodeLockInfo, getNodeService, getPath, getPermissionService, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getStatusForAccessDeniedException, getTransactionService, getURLForPath, getWorkingCopy, parseDepthHeader, parseIfHeader, setDetails, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_propertyActions

protected java.util.ArrayList m_propertyActions
Constructor Detail

PropPatchMethod

public PropPatchMethod()
Method Detail

isReadOnly

protected boolean isReadOnly()
Description copied from class: WebDAVMethod
Override and return true if the method is a query method only. The default implementation returns false.

Overrides:
isReadOnly in class PropFindMethod
Returns:
Returns false always

executeImpl

protected void executeImpl()
                    throws WebDAVServerException,
                           java.lang.Exception
Description copied from class: PropFindMethod
Execute the main WebDAV request processing

Overrides:
executeImpl in class PropFindMethod
Throws:
WebDAVServerException - a general server exception
java.lang.Exception - any unhandled exception

parseRequestBody

protected void parseRequestBody()
                         throws WebDAVServerException
Parse the request body

Overrides:
parseRequestBody in class PropFindMethod
Throws:
WebDAVServerException

parseRequestHeaders

protected void parseRequestHeaders()
                            throws WebDAVServerException
Parse the request headers

Overrides:
parseRequestHeaders in class PropFindMethod
Throws:
WebDAVServerException

createProperty

protected WebDAVProperty createProperty(org.w3c.dom.Node node)
Creates a WebDAVProperty from the given XML node

Overrides:
createProperty in class PropFindMethod

generateResponse

protected void generateResponse(org.dom4j.io.XMLWriter xml,
                                org.alfresco.service.cmr.model.FileInfo nodeInfo,
                                java.lang.String path)
                         throws java.lang.Exception
Generates the required response XML

Parameters:
xml - XMLWriter
node - NodeRef
path - String
Throws:
java.lang.Exception

generatePropertyResponse

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

Parameters:
xml - XMLWriter
node - NodeRef
isDir - boolean

generateError

protected void generateError(org.dom4j.io.XMLWriter xml)
Generates the error tag

Parameters:
xml - XMLWriter


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.