使用沙丁鱼从webDav下载文件时出现ClientProtocalException

时间:2018-10-09 11:49:25

标签: java http sardine

我打电话给ClientProtocalException时得到sardine.list

这是我的代码:

    private void downloadFromWebdav(String webDavPath, String username, String password) throws IOException {
        Sardine sardine = SardineFactory.begin(username, password);
        List<DavResource> resources = sardine.list(webDavPath, 1);
        for (DavResource res : resources) {
            System.out.println(res);
        }
    }

0 个答案:

没有答案