Initialize and use the Sardine client
masterTo interact with a WebDAV server, instantiate an OkHttpSardine client, provide your credentials using setCredentials, and then perform operations like list to retrieve DavResource objects.
Sardine sardine = new OkHttpSardine();
sardine.setCredentials("username", "password");
List<DavResource> resources = sardine.list("http://webdav.server.com");