MOVE Method. @param req The Servlet request @param resp The Servlet response @throws IOException If an IO error occurs
(HttpServletRequest req, HttpServletResponse resp)
| 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 | /** |
no test coverage detected