how can I get list of revisions of file from webdav repository on client side
I'm getting list of files via PropFindMethod:
DavMethod pFind = new PropFindMethod(u开发者_如何学Pythonrl, DavConstants.PROPFIND_ALL_PROP, DavConstants.DEPTH_1);
httpClient.executeMethod(pFind);
MultiStatus multiStatus = pFind.getResponseBodyAsMultiStatus();
MultiStatusResponse[] responses = multiStatus.getResponses();
for (int i = 0; i < responses.length; i++) {
DavPropertySet properties = responses[i].getProperties(200);
//...
}
but properties
does't contain any information about revisions of resource.
How can I get this information?
Live DeltaV properties are not reported with PROPFIND allprop, see RFC 3253. You probably need the properties DAV:checked-in, DAV:checked-out, and DAV:version-history, or the DAV:version-history report.
精彩评论