Class TransactionInfo

    • Constructor Detail

      • TransactionInfo

        public TransactionInfo​(boolean isCommit)
        Creates a TransactionInfo object
        Parameters:
        isCommit -
      • TransactionInfo

        public TransactionInfo​(org.w3c.dom.Element transactionInfo)
                        throws DavException
        Creates a TransactionInfo object from the given 'transactionInfo' element. The 'transactionInfo' must have the following form:
        
          <!ELEMENT transactioninfo (transactionstatus) >
          <!ELEMENT transactionstatus ( commit | rollback ) >
          <!ELEMENT commit EMPTY >
          <!ELEMENT rollback EMPTY >
         
        Parameters:
        transactionInfo - as present in the UNLOCK request body.
        Throws:
        java.lang.IllegalArgumentException - if the given transactionInfo element is not valid.
        DavException
    • Method Detail

      • toXml

        public org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
        Description copied from interface: XmlSerializable
        Returns the xml representation of the implementing object as Element. The given Document is used as factory and represents the owner document of the returned DOM element.
        Specified by:
        toXml in interface XmlSerializable
        Parameters:
        document -
        Returns:
        a w3c element representing this object
        See Also:
        XmlSerializable.toXml(Document)