org.apache.jackrabbit.webdav.transaction
Interface TransactionResource

All Superinterfaces:
DavResource

public interface TransactionResource
extends DavResource

TransactionResource extends the DavResource interface by transaction relevant METHODS.


Field Summary
static String COMPLIANCE_CLASS
           
static String METHODS
           
 
Method Summary
 String getTransactionId()
          The TransactionId or null according to the value of the corresponding request header field.
 void init(TxLockManager txMgr, String transactionId)
          Initializes the TransactionResource.
 void unlock(String lockToken, TransactionInfo info)
          Overloads the unlock method of the DavResource interface.
 
Methods inherited from interface org.apache.jackrabbit.webdav.DavResource
addLockManager, addMember, alterProperties, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getMembers, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, removeMember, removeProperty, setProperty, spool, unlock
 

Field Detail

COMPLIANCE_CLASS

public static final String COMPLIANCE_CLASS
See Also:
Constant Field Values

METHODS

public static final String METHODS
See Also:
Constant Field Values
Method Detail

init

public void init(TxLockManager txMgr,
                 String transactionId)
Initializes the TransactionResource.

Parameters:
txMgr -
transactionId -

getTransactionId

public String getTransactionId()
The TransactionId or null according to the value of the corresponding request header field.

Returns:
TransactionId header or null

unlock

public void unlock(String lockToken,
                   TransactionInfo info)
            throws DavException
Overloads the unlock method of the DavResource interface.

Parameters:
lockToken - lock token as present in the request header.
info - transaction info object as present in the UNLOCK request body.
Throws:
DavException - if an error occurs
See Also:
DavResource.unlock(String), TransactionDavServletRequest.getTransactionId(), DavServletRequest.getLockToken()


Copyright © 2005-2006 . All Rights Reserved.