Class TransactionInfo

java.lang.Object
org.apache.jackrabbit.webdav.transaction.TransactionInfo
All Implemented Interfaces:
TransactionConstants, XmlSerializable

public class TransactionInfo extends Object implements TransactionConstants, XmlSerializable
TransactionInfo class encapsulates the information present in the TransactionConstants.XML_TRANSACTIONINFO element that forms the request body of the UNLOCk request for a transaction lock.
See Also:
  • Constructor Details

    • TransactionInfo

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

      public TransactionInfo(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:
      IllegalArgumentException - if the given transactionInfo element is not valid.
      DavException
  • Method Details