MCPcopy Create free account
hub / github.com/apache/tomcat / isLocked

Method isLocked

java/org/apache/catalina/servlets/WebdavServlet.java:2020–2032  ·  view source on GitHub ↗

Check to see if a resource is currently write locked. The method will look at the "If" header to make sure the client has demonstrated knowledge of the appropriate lock tokens. @param path The relative path @param req Servlet request @return true if the resource is locked (and no app

(String path, HttpServletRequest req)

Source from the content-addressed store, hash-verified

2018 * one of the non-shared locks which are present on the resource).
2019 */
2020 private boolean isLocked(String path, HttpServletRequest req) {
2021
2022 if (path == null) {
2023 path = getRelativePath(req);
2024 }
2025
2026 String ifHeader = req.getHeader("If");
2027 if (ifHeader == null) {
2028 ifHeader = "";
2029 }
2030
2031 return isLocked(path, req.getRemoteUser(), ifHeader);
2032 }
2033
2034
2035 /**

Callers 7

doProppatchMethod · 0.95
doMkcolMethod · 0.95
doPutMethod · 0.95
doMoveMethod · 0.95
copyResourceMethod · 0.95
deleteResourceMethod · 0.95
deleteCollectionMethod · 0.95

Calls 9

getRelativePathMethod · 0.95
hasExpiredMethod · 0.95
isExclusiveMethod · 0.95
getHeaderMethod · 0.65
getRemoteUserMethod · 0.65
getMethod · 0.65
removeMethod · 0.65
containsMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected