Search in sources :

Example 1 with TransactionInfo

use of org.apache.jackrabbit.webdav.transaction.TransactionInfo in project jackrabbit by apache.

the class AbstractWebdavServlet method doUnlock.

/**
     * The UNLOCK method
     *
     * @param request
     * @param response
     * @param resource
     * @throws DavException
     */
protected void doUnlock(WebdavRequest request, WebdavResponse response, DavResource resource) throws DavException {
    // get lock token from header
    String lockToken = request.getLockToken();
    TransactionInfo tInfo = request.getTransactionInfo();
    if (tInfo != null) {
        ((TransactionResource) resource).unlock(lockToken, tInfo);
    } else {
        resource.unlock(lockToken);
    }
    response.setStatus(DavServletResponse.SC_NO_CONTENT);
}
Also used : TransactionInfo(org.apache.jackrabbit.webdav.transaction.TransactionInfo) TransactionResource(org.apache.jackrabbit.webdav.transaction.TransactionResource)

Aggregations

TransactionInfo (org.apache.jackrabbit.webdav.transaction.TransactionInfo)1 TransactionResource (org.apache.jackrabbit.webdav.transaction.TransactionResource)1