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);
}
Aggregations