public class TransactionInfo extends java.lang.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.GLOBAL, HEADER_TRANSACTIONID, LOCAL, NAMESPACE, TRANSACTION, XML_COMMIT, XML_GLOBAL, XML_LOCAL, XML_ROLLBACK, XML_TRANSACTION, XML_TRANSACTIONINFO, XML_TRANSACTIONSTATUS| Constructor and Description |
|---|
TransactionInfo(boolean isCommit)
Creates a
TransactionInfo object |
TransactionInfo(org.w3c.dom.Element transactionInfo)
Creates a
TransactionInfo object from the given 'transactionInfo'
element. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCommit()
Returns true, if this info requires a 'commit' action, false otherwise
(i.e.
|
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object as
Element. |
public TransactionInfo(boolean isCommit)
TransactionInfo objectisCommit - public TransactionInfo(org.w3c.dom.Element transactionInfo)
throws DavException
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 >
transactionInfo - as present in the UNLOCK request body.java.lang.IllegalArgumentException - if the given transactionInfo element
is not valid.DavExceptionpublic boolean isCommit()
TransactionConstants.XML_COMMIT,
TransactionConstants.XML_ROLLBACKpublic org.w3c.dom.Element toXml(org.w3c.dom.Document document)
XmlSerializableElement. The given Document is used
as factory and represents the owner document of the returned DOM element.toXml in interface XmlSerializabledocument - XmlSerializable.toXml(Document)Copyright © 2010 - 2023 Adobe. All Rights Reserved