Sardine

  528 downloads
284 The Apache License 2.0    
  not rated
An easy to use WebDAV client for Java

description

download

specifications

changelog

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("http://yourdavserver.com/adirectory/");
for (DavResource res : resources)
{
 System.out.println(res);
}


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.
READ MORE   
Last updated on July 6th, 2011

0 User reviews so far.

SUBMIT