Sardine 284

An easy to use WebDAV client for Java
Sardine is an application useful for interacting with a WebDAV server. Sardine is easier to use than the discontinued slide client and the nearly undocumented Jackrabbit client. There is also webdavclient4j, but it is just a slightly improved slide client.

This is an example of how to get a directory listing from a remote webdav server:

Sardine sardine = SardineFactory.begin();
List< DavResource > resources = sardine.getResources("");
for (DavResource res : resources)

Developer comments

Sardine doesn't implement a full webdav spec client and probably never will. Instead it is focused on being a useful library for common use cases. I also need it to support the latest version of HttpClient. Sardine abstracts away the connection details and provides easy to use methods to accomplish webdav actions.

Sardine uses JAXB to process the XML responses from the webdav server. The generated code for this is based on the excellent webdav.xsd contained in the Apache Wink project.

The UsageGuide documents how to use Sardine.

last updated on:
July 6th, 2011, 8:06 GMT
license type:
The Apache License 2.0 
developed by:
Jon S. Stevens
ROOT \ Internet \ HTTP (WWW)
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!
What's New in This Release:
  • Basic lock handling support was added.
  • PROPPATCH now returns a multistatus response.
  • A custom namespace may be defined for updated properties.
  • PUT operations are retried on expectation failure for repeatable entities.
read full changelog

Add your review!