开发者

how can I get list of revisions of file from webdav repository on client side

开发者 https://www.devze.com 2023-01-09 08:48 出处:网络
I\'m getting list of files via PropFindMethod: DavMethod pFind = new PropFindMethod(u开发者_如何学Pythonrl, DavConstants.PROPFIND_ALL_PROP, DavConstants.DEPTH_1);

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消