That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred.
7 Answers
I created a very easy to use java webdav client: http://sardine.googlecode.com/
This now moved to github : https://github.com/lookfirst/sardine

- 18,003
- 15
- 89
- 143

- 1,817
- 1
- 21
- 20
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).

- 476
- 3
- 7
-
I need access to the properties. But the Jackrabbit-library sounds good, I will take a look, if it is usable. Thanks for the hint. – Mnementh Sep 24 '08 at 21:11
-
None of the link are valid anymore. – 3c71 Mar 02 '20 at 08:06
-
Apache Jackrabbit WebDAV Library moved to https://jackrabbit.apache.org/jcr/components/jackrabbit-webdav-library.html – ahaertig Aug 26 '20 at 07:43
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.

- 15,352
- 4
- 44
- 84
-
+1 The client library of Jakarta Slide was good and Jackrabbit doesn't offer anything equivalent. It's good to know there is something new in this field. – Pascal Thivent Oct 18 '09 at 22:27
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?

- 1
- 1

- 1,721
- 2
- 20
- 37
-
1This has many contributors and is still an active project 5 years after the answer above was posted, so it looks like a useful option. – Rick-777 Apr 11 '16 at 09:30
Apache's Jakarta Project has a WebDav Construction Kit, which should fit this need.

- 26,788
- 9
- 50
- 60
-
WebDav Construction Kit looks like a server side technology for implementing WebDav in Tomcat or other containers. Am I wrong? – Allain Lalonde Oct 22 '08 at 12:49