[英]Which Java-library can be used to access data via WebDAV?
That's the question: Which library can help me to access data available via WebDAV in my Java-programs? 这就是问题:哪个库可以帮助我在Java程序中访问通过WebDAV获得的数据? OpenSource is preferred.
OpenSource是首选。
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
The now deprecated Apache Jakarta Slide project 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 Jackrabbit is mentioned as alternative to Slide. 提到Apache Jackrabbit是Slide的替代品。 You might want to check if its WebDAV library can be used instead.
您可能想要检查是否可以使用其WebDAV库 。
If you just want to access files from a WebDAV repository, you can simply use a HTTP library as WebDAV builds upon HTTP. 如果您只想从WebDAV存储库访问文件,则只需使用HTTP库,因为WebDAV基于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功能(如锁定,目录列表或对属性的访问(元数据)),则只需要WebDAV客户端库。
Libraries which are already around for a while are: 已经存在一段时间的图书馆是:
Milton requires license when DAV 2 is required. 当需要DAV 2时,Milton需要许可证。
On WikiPedia you find aa small summary of available libraries. 在WikiPedia上,您可以找到可用库的小摘要。
http://sourceforge.net/projects/webdavclient4j/ is based on the retired Apache Jakarta Slide project's Java webdav client, and includes the VFS WebDAV provider. http://sourceforge.net/projects/webdavclient4j/基于退役的Apache Jakarta Slide项目的Java webdav客户端,并包含VFS WebDAV提供程序。 It is packaged with HttpClient 3.0.1.
它与HttpClient 3.0.1打包在一起。
Here's a better library to use for webdav operations. 这是一个用于webdav操作的更好的库。 It's called Sardine hosted in Google Code.
它被称为沙丁鱼托管在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服务器?
从未使用它,但也许apache commons vfs ?
Apache的雅加达项目有一个WebDav构建工具包 ,它应该满足这种需求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.