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

Method doDelete

java/org/apache/catalina/servlets/WebdavServlet.java:1305–1321  ·  view source on GitHub ↗
(HttpServletRequest req, HttpServletResponse resp)

Source from the content-addressed store, hash-verified

1303
1304
1305 @Override
1306 protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
1307
1308 if (isReadOnly()) {
1309 sendNotAllowed(req, resp);
1310 return;
1311 }
1312
1313 String path = getRelativePath(req);
1314
1315 WebResource resource = resources.getResource(path);
1316 if (!checkIfHeaders(req, resp, resource)) {
1317 resp.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED);
1318 return;
1319 }
1320 deleteResource(path, req, resp, true);
1321 }
1322
1323
1324 @Override

Callers

nothing calls this directly

Calls 7

getRelativePathMethod · 0.95
checkIfHeadersMethod · 0.95
deleteResourceMethod · 0.95
sendNotAllowedMethod · 0.80
isReadOnlyMethod · 0.65
getResourceMethod · 0.65
setStatusMethod · 0.65

Tested by

no test coverage detected