Package org.apache.jackrabbit.server.io
Interface DeleteHandler
-
- All Known Implementing Classes:
DefaultHandler
,VersionHandler
,XmlHandler
,ZipHandler
public interface DeleteHandler
The DeleteHandler is invoked when a webdav DELETE request is received. Implementers of this interface should plugin their handling of DELETE request here
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canDelete(DeleteContext deleteContext, DavResource resource)
Validates if this handler is able to execute a delete operation with the given parameters.boolean
delete(DeleteContext deleteContext, DavResource resource)
Executes the delete operation with the given parameters.
-
-
-
Method Detail
-
delete
boolean delete(DeleteContext deleteContext, DavResource resource) throws DavException
Executes the delete operation with the given parameters.- Parameters:
deleteContext
- The context of the delete.resource
- The resource to be deleted- Returns:
true
if this instance successfully executed the delete operation with the given parameters;false
otherwise.- Throws:
DavException
- If an error occurs.
-
canDelete
boolean canDelete(DeleteContext deleteContext, DavResource resource)
Validates if this handler is able to execute a delete operation with the given parameters.- Parameters:
deleteContext
- The context of the deleteresource
- The resource to be deleted- Returns:
true
if this instance can successfully execute the delete operation with the given parameters;false
otherwise.
-
-