哪个 Java 库可用于通过 WebDAV 访问数据?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/122685/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Which Java-library can be used to access data via WebDAV?
提问by Mnementh
That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred.
这就是问题所在:哪个库可以帮助我在 Java 程序中通过 WebDAV 访问可用数据?开源是首选。
采纳答案by ahu
The now deprecated Apache Jakarta Slideproject includes a Java WebDAV client library- but this project is retired due to the lack of a developer community.
现在已弃用的Apache Jakarta Slide项目包括一个 Java WebDAV 客户端库- 但由于缺乏开发人员社区,该项目已退役。
Apache Hymanrabbitis mentioned as alternative to Slide. You might want to check if its WebDAV librarycan be used instead.
Apache Hymanrabbit被提及作为 Slide 的替代品。您可能想检查是否可以改用其WebDAV 库。
If you just want to access files from a WebDAV repository, you can simply use a HTTP library as WebDAV builds upon HTTP. You only need a WebDAV client library if you want to use WebDAV features like locking, directory listings or access to properties (meta-data).
如果您只想访问来自 WebDAV 存储库的文件,您可以简单地使用 HTTP 库,因为 WebDAV 是基于 HTTP 构建的。如果您想使用 WebDAV 功能,例如锁定、目录列表或访问属性(元数据),您只需要一个 WebDAV 客户端库。
回答by Jon Stevens
I created a very easy to use java webdav client: http://sardine.googlecode.com/
我创建了一个非常易于使用的 java webdav 客户端:http: //sardine.googlecode.com/
This now moved to github : https://github.com/lookfirst/sardine
这现在转移到 github:https: //github.com/lookfirst/sardine
回答by uniknow
Libraries which are already around for a while are:
已经存在一段时间的图书馆是:
Milton requires license when DAV 2 is required.
当需要 DAV 2 时,Milton 需要许可证。
On WikiPediayou find a a small summary of available libraries.
在WikiPedia 上,您可以找到可用库的小摘要。
回答by JasonPlutext
http://sourceforge.net/projects/webdavclient4j/is based on the retired Apache Jakarta Slide project's Java webdav client, and includes the VFS WebDAV provider. It is packaged with HttpClient 3.0.1.
http://sourceforge.net/projects/webdavclient4j/基于已退役的 Apache Jakarta Slide 项目的 Java webdav 客户端,包括 VFS WebDAV 提供程序。它与 HttpClient 3.0.1 一起打包。
回答by Ianthe the Duke of Nukem
Here's a better library to use for webdav operations. It's called Sardine hosted in Google Code.
这是用于 webdav 操作的更好的库。它被称为 Sardine 托管在 Google Code 中。
https://github.com/lookfirst/sardine(was previously http://code.google.com/p/sardine)
https://github.com/lookfirst/sardine(以前是http://code.google.com/p/sardine)
I found it through here: Java: How to upload a file to a WebDAV server from a servlet?
我在这里找到了它: Java:如何从 servlet 将文件上传到 WebDAV 服务器?
回答by Kyle Burton
Apache's Jakarta Projecthas a WebDav Construction Kit, which should fit this need.
Apache 的 Jakarta Project有一个WebDav Construction Kit,它应该可以满足这种需求。

