Class PropertySourcePatchSetter

java.lang.Object
io.milton.http.webdav.PropertySourcePatchSetter
All Implemented Interfaces:
PropPatchSetter

public class PropertySourcePatchSetter extends Object implements PropPatchSetter
Author:
brad
  • Constructor Details

  • Method Details

    • supports

      public boolean supports(Resource r)
      This returns true for all resources, but it actually depends on the configured property sources. If no property sources support a given resource, a proppatch attempt will return 404's for all properties
      Specified by:
      supports in interface PropPatchSetter
      Parameters:
      r -
      Returns:
    • setProperties

      public PropFindResponse setProperties(String href, PropPatchParseResult parseResult, Resource r) throws NotAuthorizedException, BadRequestException
      Description copied from interface: PropPatchSetter
      Update the given resource with the properties specified in the parseResult and return appropriate responses
      Specified by:
      setProperties in interface PropPatchSetter
      Parameters:
      href - - the address of the resource being patched
      parseResult - - the list of properties to be mutated
      r - - the resource to be updated
      Returns:
      - response indicating success or otherwise for each field. Note that success responses should not contain the value
      Throws:
      NotAuthorizedException
      BadRequestException