public class DefaultPropFindPropertyBuilder extends Object implements PropFindPropertyBuilder
| Constructor and Description |
|---|
DefaultPropFindPropertyBuilder(List<PropertySource> propertySources) |
| Modifier and Type | Method and Description |
|---|---|
List<PropFindResponse> |
buildProperties(PropFindableResource pfr,
int depth,
PropertiesRequest parseResult,
String url)
Construct a list of PropFindResponse for the given resource, using the
PropertySource's injected into this class.
|
Set<QName> |
findAllProps(PropFindableResource resource) |
static String |
fixUrlForWindows(String url)
Requested URL *should* never contain an ampersand because its a reserved
character.
|
ValueAndType |
getProperty(QName field,
Resource resource) |
void |
processResource(List<PropFindResponse> responses,
PropFindableResource resource,
PropertiesRequest parseResult,
String href,
int requestedDepth,
int currentDepth,
String collectionHref) |
public DefaultPropFindPropertyBuilder(List<PropertySource> propertySources)
propertySources - - the list of property sources used to read
properties from resourcespublic List<PropFindResponse> buildProperties(PropFindableResource pfr, int depth, PropertiesRequest parseResult, String url) throws URISyntaxException, NotAuthorizedException, BadRequestException
buildProperties in interface PropFindPropertyBuilderpfr - - the resource to interrogatedepth - - the depth header. 0 means only look at the given resource.
1 is to include childrenparseResult - - contains the list of fields, or a true boolean
indicating all propertiesurl - - the URL of the given resource - MUST be correctly encodedURISyntaxExceptionNotAuthorizedExceptionBadRequestExceptionpublic ValueAndType getProperty(QName field, Resource resource) throws NotAuthorizedException, BadRequestException
getProperty in interface PropFindPropertyBuilderNotAuthorizedExceptionBadRequestExceptionpublic void processResource(List<PropFindResponse> responses, PropFindableResource resource, PropertiesRequest parseResult, String href, int requestedDepth, int currentDepth, String collectionHref) throws NotAuthorizedException, BadRequestException
processResource in interface PropFindPropertyBuilderNotAuthorizedExceptionBadRequestExceptionpublic Set<QName> findAllProps(PropFindableResource resource) throws NotAuthorizedException, BadRequestException
findAllProps in interface PropFindPropertyBuilderNotAuthorizedExceptionBadRequestExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.