18

That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred.

Mnementh
  • 50,487
  • 48
  • 148
  • 202

7 Answers7

16

I created a very easy to use java webdav client: http://sardine.googlecode.com/

This now moved to github : https://github.com/lookfirst/sardine

Jayan
  • 18,003
  • 15
  • 89
  • 143
Public Profile
  • 1,817
  • 1
  • 21
  • 20
12

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).

ahu
  • 476
  • 3
  • 7
9

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.

uniknow
  • 938
  • 6
  • 5
5

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.

JasonPlutext
  • 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
4

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?

Community
  • 1
  • 1
Ianthe the Duke of Nukem
  • 1,721
  • 2
  • 20
  • 37
  • 1
    This 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
3

Never used it, but maybe apache commons vfs?

André
  • 12,971
  • 3
  • 33
  • 45
2

Apache's Jakarta Project has a WebDav Construction Kit, which should fit this need.

Kyle Burton
  • 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