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

Method doMove

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

MOVE Method. @param req The Servlet request @param resp The Servlet response @throws IOException If an IO error occurs

(HttpServletRequest req, HttpServletResponse resp)

Source from the content-addressed store, hash-verified

1377 * @throws IOException If an IO error occurs
1378 */
1379 protected void doMove(HttpServletRequest req, HttpServletResponse resp) throws IOException {
1380
1381 if (isReadOnly()) {
1382 resp.sendError(WebdavStatus.SC_FORBIDDEN);
1383 return;
1384 }
1385
1386 String path = getRelativePath(req);
1387
1388 if (isLocked(path, req)) {
1389 resp.sendError(WebdavStatus.SC_LOCKED);
1390 return;
1391 }
1392
1393 if (copyResource(path, req, resp)) {
1394 deleteResource(path, req, resp, false);
1395 }
1396 }
1397
1398
1399 /**

Callers 1

serviceMethod · 0.95

Calls 6

getRelativePathMethod · 0.95
isLockedMethod · 0.95
copyResourceMethod · 0.95
deleteResourceMethod · 0.95
isReadOnlyMethod · 0.65
sendErrorMethod · 0.65

Tested by

no test coverage detected