public interface DeleteHandler
Modifier and Type | Method and 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.
|
boolean delete(DeleteContext deleteContext, DavResource resource) throws DavException
deleteContext
- The context of the delete.resource
- The resource to be deletedtrue
if this instance successfully executed the delete operation with the given parameters;
false
otherwise.DavException
- If an error occurs.boolean canDelete(DeleteContext deleteContext, DavResource resource)
deleteContext
- The context of the deleteresource
- The resource to be deletedtrue
if this instance can successfully execute the delete operation with the given parameters;
false
otherwise.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.