catch (PathNotFoundException pexc)
{
lockToken = nullResourceLocks.addLock(session, path);
}
LockRequestEntity requestEntity = new LockRequestEntity(body);
lockToken = WebDavConst.Lock.OPAQUE_LOCK_TOKEN + ":" + lockToken; //NOSONAR
if (bodyIsEmpty)
{
return Response.ok(body(nsContext, requestEntity, depth, lockToken, requestEntity.getOwner(), timeout),
"text/xml").build();
}
else
{
return Response
.ok(body(nsContext, requestEntity, depth, lockToken, requestEntity.getOwner(), timeout), "text/xml")
.header("Lock-Token", "<" + lockToken + ">").build();
}
}
catch (LockException exc)
{