org.apache.jackrabbit.webdav.transaction
Class TransactionInfo

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.transaction.TransactionInfo
All Implemented Interfaces:
TransactionConstants

public class TransactionInfo
extends Object
implements TransactionConstants

TransactionInfo class encapsultes the information present in the TransactionConstants.XML_TRANSACTIONINFO element that forms the request body of the UNLOCk request for a transaction lock.

See Also:
TransactionConstants.XML_TRANSACTIONINFO, TransactionConstants.XML_TRANSACTION

Field Summary
 
Fields inherited from interface org.apache.jackrabbit.webdav.transaction.TransactionConstants
GLOBAL, HEADER_TRANSACTIONID, ISMODIFIED, ISNEW, LOCAL, NAMESPACE, TRANSACTION, XML_COMMIT, XML_GLOBAL, XML_LOCAL, XML_ROLLBACK, XML_TRANSACTION, XML_TRANSACTIONINFO, XML_TRANSACTIONSTATUS
 
Constructor Summary
TransactionInfo(org.jdom.Element transactionInfo)
          Creates a TransactionInfo object from the given 'transactionInfo' element.
 
Method Summary
 String getStatus()
          Returns either 'commit' or 'rollback' with are the only allowed status types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionInfo

public TransactionInfo(org.jdom.Element transactionInfo)
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.
Method Detail

getStatus

public String getStatus()
Returns either 'commit' or 'rollback' with are the only allowed status types.

Returns:
'commit' or 'rollback'
See Also:
TransactionConstants.XML_COMMIT, TransactionConstants.XML_ROLLBACK


Copyright © 2005 . All Rights Reserved.