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

Method doCopy

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

COPY 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

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 /**

Callers 1

serviceMethod · 0.95

Calls 4

getRelativePathMethod · 0.95
copyResourceMethod · 0.95
isReadOnlyMethod · 0.65
sendErrorMethod · 0.65

Tested by

no test coverage detected