Class LockDiscovery

    • Constructor Detail

      • LockDiscovery

        public LockDiscovery()
        Creates a new empty LockDiscovery property
      • LockDiscovery

        public LockDiscovery​(ActiveLock lock)
        Create a new LockDiscovery property
        Parameters:
        lock -
      • LockDiscovery

        public LockDiscovery​(ActiveLock[] locks)
        Create a new LockDiscovery property
        Parameters:
        locks -
    • Method Detail

      • toXml

        public org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
        Creates a <lockdiscovery> element in response to a LOCK request or to the lockdiscovery property of a PROPFIND request.
        NOTE: if the activeLocks list is empty an empty lockdiscovery property is created ( <lockdiscovery/>)
        Specified by:
        toXml in interface XmlSerializable
        Overrides:
        toXml in class AbstractDavProperty<java.util.List<ActiveLock>>
        Parameters:
        document -
        Returns:
        A <lockdiscovery> element.
        See Also:
        XmlSerializable.toXml(Document)
      • createFromXml

        public static LockDiscovery createFromXml​(org.w3c.dom.Element lockDiscoveryElement)
        Builds a new LockDiscovery object from the given xml element.
        Parameters:
        lockDiscoveryElement -
        Returns:
        Throws:
        java.lang.IllegalArgumentException - if the given xml element is not a DAV:lockdiscovery element.