Package org.apache.jackrabbit.server.io
Interface DeleteHandler
-
- All Known Implementing Classes:
DefaultHandler,VersionHandler,XmlHandler,ZipHandler
public interface DeleteHandlerThe 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 booleancanDelete(DeleteContext deleteContext, DavResource resource)Validates if this handler is able to execute a delete operation with the given parameters.booleandelete(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:
trueif this instance successfully executed the delete operation with the given parameters;falseotherwise.- 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:
trueif this instance can successfully execute the delete operation with the given parameters;falseotherwise.
-
-