Package org.drjekyll.webdav.methods
Class DoDelete
- java.lang.Object
-
- org.drjekyll.webdav.methods.Method
-
- org.drjekyll.webdav.methods.DoDelete
-
- All Implemented Interfaces:
MethodExecutor
public class DoDelete extends Method
-
-
Field Summary
-
Fields inherited from class org.drjekyll.webdav.methods.Method
BUF_SIZE, CREATION_DATE_FORMAT, DEFAULT_TIMEOUT, INFINITY, LAST_MODIFIED_DATE_FORMAT, LOCAL_DATE_FORMAT, MAX_TIMEOUT, TEMP_TIMEOUT, TEMPORARY, URL_ENCODER
-
-
Constructor Summary
Constructors Constructor Description DoDelete(WebdavStore store, ResourceLocks resourceLocks, boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteResource(Transaction transaction, String path, Map<String,Integer> errorList, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
deletes the recources at "path"void
execute(Transaction transaction, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
-
Methods inherited from class org.drjekyll.webdav.methods.Method
checkLocks, creationDateFormat, getCleanPath, getDepth, getDocumentBuilder, getETag, getLocalDateFormat, getLockIdFromIfHeader, getLockIdFromLockTokenHeader, getParentPath, getRelativePath, lastModifiedDateFormat, rewriteUrl, sendReport
-
-
-
-
Constructor Detail
-
DoDelete
public DoDelete(WebdavStore store, ResourceLocks resourceLocks, boolean readOnly)
-
-
Method Detail
-
execute
public void execute(Transaction transaction, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
- Throws:
IOException
-
deleteResource
public void deleteResource(Transaction transaction, String path, Map<String,Integer> errorList, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
deletes the recources at "path"- Parameters:
transaction
- indicates that the method is within the scope of a WebDAV transactionpath
- the folder to be deletederrorList
- all errors that ocurredreq
- HttpServletRequestresp
- HttpServletResponse- Throws:
WebdavException
- if an error in the underlying store occursIOException
- when an error occurs while sending the response
-
-