COPY Method. @param req The Servlet request @param resp The Servlet response @throws IOException If an IO error occurs
(HttpServletRequest req, HttpServletResponse resp)
| 1356 | * @throws IOException If an IO error occurs |
| 1357 | */ |
| 1358 | protected void doCopy(HttpServletRequest req, HttpServletResponse resp) throws IOException { |
| 1359 | |
| 1360 | if (isReadOnly()) { |
| 1361 | resp.sendError(WebdavStatus.SC_FORBIDDEN); |
| 1362 | return; |
| 1363 | } |
| 1364 | |
| 1365 | String path = getRelativePath(req); |
| 1366 | |
| 1367 | copyResource(path, req, resp); |
| 1368 | } |
| 1369 | |
| 1370 | |
| 1371 | /** |
no test coverage detected