开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜