Package io.milton.http.webdav
Interface PropPatchSetter
- All Known Implementing Classes:
PropertySourcePatchSetter
public interface PropPatchSetter
Applies a proppatch result to a resource
This interface is only really needed to support updating properties via the
old PropPatchableResource.setFields() method. The more modern way of doing
things is through the PropertySource interface, which is symmetrical for
reading and writing properties.
- Author:
- brad
-
Method Summary
Modifier and TypeMethodDescriptionsetProperties(String href, PropPatchParseResult parseResult, Resource r) Update the given resource with the properties specified in the parseResult and return appropriate responsesbooleanReturn whether the given resource can be proppatch'ed with this PropPatchSetter
-
Method Details
-
setProperties
PropFindResponse setProperties(String href, PropPatchParseResult parseResult, Resource r) throws NotAuthorizedException, BadRequestException, ConflictException Update the given resource with the properties specified in the parseResult and return appropriate responses- Parameters:
href- - the address of the resource being patchedparseResult- - the list of properties to be mutatedr- - the resource to be updated- Returns:
- - response indicating success or otherwise for each field. Note that success responses should not contain the value
- Throws:
NotAuthorizedExceptionBadRequestExceptionConflictException
-
supports
Return whether the given resource can be proppatch'ed with this PropPatchSetter- Parameters:
r-- Returns:
-