(HttpServletRequest req, HttpServletResponse resp)
| 1322 | |
| 1323 | |
| 1324 | @Override |
| 1325 | protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { |
| 1326 | |
| 1327 | String path = getRelativePath(req); |
| 1328 | |
| 1329 | WebResource resource = resources.getResource(path); |
| 1330 | if (!checkIfHeaders(req, resp, resource)) { |
| 1331 | resp.setStatus(HttpServletResponse.SC_PRECONDITION_FAILED); |
| 1332 | return; |
| 1333 | } |
| 1334 | |
| 1335 | if (isLocked(path, req)) { |
| 1336 | resp.sendError(WebdavStatus.SC_LOCKED); |
| 1337 | return; |
| 1338 | } |
| 1339 | |
| 1340 | if (resource.isDirectory()) { |
| 1341 | sendNotAllowed(req, resp); |
| 1342 | return; |
| 1343 | } |
| 1344 | |
| 1345 | super.doPut(req, resp); |
| 1346 | |
| 1347 | } |
| 1348 | |
| 1349 | |
| 1350 | /** |
nothing calls this directly
no test coverage detected