Class PropPatchMethod


  • public class PropPatchMethod
    extends PropFindMethod
    Implements the WebDAV PROPPATCH method
    Author:
    Ivan Rybnikov
    • 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
      • generateResponseImpl

        protected void generateResponseImpl()
                                     throws java.lang.Exception
        Description copied from class: WebDAVMethod
        Does nothing unless overridden - for reasons of backwards compatibility. Subclasses implementing this method should separate the WebDAV method execution logic from response generation logic. Execution logic should be contained in the 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().

        Overrides:
        generateResponseImpl in class WebDAVMethod
        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
        property - WebDAVProperty
        status - int
        description - String
      • generateError

        protected void generateError​(org.dom4j.io.XMLWriter xml)
        Generates the error tag
        Parameters:
        xml - XMLWriter