(HttpServletRequest req, HttpServletResponse resp)
| 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 |
nothing calls this directly
no test coverage detected