Class WebdavServlet.MemoryPropertyStore

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copy​(java.lang.String source, java.lang.String destination)
      Copy resource.
      void delete​(java.lang.String resource)
      Delete specified resource.
      void destroy()
      Destroy the store.
      void init()
      Initialize the store.
      void periodicEvent()
      Periodic event for maintenance tasks.
      boolean propfind​(java.lang.String resource, org.w3c.dom.Node property, boolean nameOnly, XMLWriter generatedXML)
      Generate propfind XML fragments for dead properties.
      void proppatch​(java.lang.String resource, java.util.ArrayList<WebdavServlet.ProppatchOperation> operations)
      Apply proppatch to the specified resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MemoryPropertyStore

        public MemoryPropertyStore()
    • Method Detail

      • copy

        public void copy​(java.lang.String source,
                         java.lang.String destination)
        Description copied from interface: WebdavServlet.PropertyStore
        Copy resource. Dead properties should be copied to the destination path.
        Specified by:
        copy in interface WebdavServlet.PropertyStore
        Parameters:
        source - the copy source path
        destination - the copy destination path
      • delete

        public void delete​(java.lang.String resource)
        Description copied from interface: WebdavServlet.PropertyStore
        Delete specified resource. Dead properties on a deleted resource should be deleted.
        Specified by:
        delete in interface WebdavServlet.PropertyStore
        Parameters:
        resource - the path of the resource to delete
      • propfind

        public boolean propfind​(java.lang.String resource,
                                org.w3c.dom.Node property,
                                boolean nameOnly,
                                XMLWriter generatedXML)
        Description copied from interface: WebdavServlet.PropertyStore
        Generate propfind XML fragments for dead properties.
        Specified by:
        propfind in interface WebdavServlet.PropertyStore
        Parameters:
        resource - the resource path
        property - the dead property, if null then all dead properties must be written
        nameOnly - true if only the property name element should be generated
        generatedXML - the current generated XML for the PROPFIND response
        Returns:
        true if a property was specified and a corresponding dead property was found on the resource, false otherwise
      • proppatch

        public void proppatch​(java.lang.String resource,
                              java.util.ArrayList<WebdavServlet.ProppatchOperation> operations)
        Description copied from interface: WebdavServlet.PropertyStore
        Apply proppatch to the specified resource.
        Specified by:
        proppatch in interface WebdavServlet.PropertyStore
        Parameters:
        resource - the resource path on which to apply the proppatch
        operations - the set and remove to apply, the final status codes of the result should be set on each operation