Question

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

Was it helpful?

Solution

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

OTHER TIPS

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

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

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.

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.

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?

Never used it, but maybe apache commons vfs?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top