Package io.milton.http.webdav
Class PropertySourcePatchSetter
java.lang.Object
io.milton.http.webdav.PropertySourcePatchSetter
- All Implemented Interfaces:
PropPatchSetter
- Author:
- brad
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPropertySourcePatchSetter(List<PropertySource> propertySources) PropertySourcePatchSetter(List<PropertySource> propertySources, ValueWriters valueWriters) -
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 responsesbooleanThis returns true for all resources, but it actually depends on the configured property sources.
-
Constructor Details
-
PropertySourcePatchSetter
-
PropertySourcePatchSetter
-
-
Method Details
-
supports
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:
supportsin interfacePropPatchSetter- Parameters:
r-- Returns:
-
setProperties
public PropFindResponse setProperties(String href, PropPatchParseResult parseResult, Resource r) throws NotAuthorizedException, BadRequestException Description copied from interface:PropPatchSetterUpdate the given resource with the properties specified in the parseResult and return appropriate responses- Specified by:
setPropertiesin interfacePropPatchSetter- 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:
NotAuthorizedExceptionBadRequestException
-