Reputation: 51311
That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred.
Upvotes: 18
Views: 27081
Reputation: 938
Libraries which are already around for a while are:
Milton requires license when DAV 2 is required.
On WikiPedia you find a a small summary of available libraries.
Upvotes: 9
Reputation: 1837
I created a very easy to use java webdav client: http://sardine.googlecode.com/
This now moved to github : https://github.com/lookfirst/sardine
Upvotes: 18
Reputation: 1761
Here's a better library to use for webdav operations. It's called Sardine hosted in Google Code.
https://github.com/lookfirst/sardine (was previously http://code.google.com/p/sardine)
I found it through here: Java: How to upload a file to a WebDAV server from a servlet?
Upvotes: 4
Reputation: 15863
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.
Upvotes: 5
Reputation: 466
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 Jackrabbit is mentioned as alternative to Slide. You might want to check if its WebDAV library can be used instead.
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).
Upvotes: 12
Reputation: 27528
Apache's Jakarta Project has a WebDav Construction Kit, which should fit this need.
Upvotes: 2