Questions tagged [sardine]

an easy to use webdav client for java

an easy to use webdav client for java

See https://code.google.com/p/sardine/

29 questions
4
votes
0 answers

Sardine put(String, InputStream) puts empty file to server

Sardine version: 5.8 Java 1.8 (relevant for any dependency overwrites?) Spring Boot 2.1.2 project Tomcat9.0.14 I can connect to my Server (Nextcloud) via Sardine. Also the executed put-call has an effect to the server, as it places the expected…
Sunchezz
  • 740
  • 6
  • 21
2
votes
2 answers

WebDav library Sardine on Android with httpclientandroidlib

Referencing to this thread Using webdav on Android It is possible to use the Sardine lib ( http://code.google.com/p/sardine/) in combination with the httpclientandroidlib ( http://code.google.com/p/httpclientandroidlib/). But I keep getting a…
Sam Hueppi
  • 49
  • 7
2
votes
1 answer

How to download zip files from webdav server using sardine?

I am using below java class which uses sardine , i am getting only resources or zip files list in the directory, what should i use to download zip files? package com.download; import java.util.List; import org.mule.api.MuleEventContext; import…
Prasad
  • 33
  • 3
  • 11
2
votes
2 answers

Android error: package org.apache.tools.ant does not exist

I'm trying to add com.github.sardine library and build my app with it. It fails with the following error Error:(3, 28) error: package org.apache.tools.ant does not exist Solution is needed.
Alexeev Valeriy
  • 520
  • 7
  • 20
2
votes
1 answer

Java reconnect after network interface change

I am writing a file synchronization client (in Java 1.6) that uses Sardine: https://code.google.com/p/sardine/ When Sardine loses connection to the server (ie. network outage or change from LAN to WiFi), I am unable to reconnect until I completely…
KannedFarU
  • 305
  • 3
  • 9
2
votes
1 answer

Integration of Yahoo Calendar using CalDav API

I am trying to access yahoo calendar of a user if his username and password are known. I found a code snippet which uses CalDav api to do the task. Code uses 2 libraries sardine.jar and ical4j.jar. The documentation of that code says that code will…
Nishad K Ahamed
  • 1,374
  • 15
  • 25
1
vote
1 answer

using sardine for accessing a sharepoint website from a java application

SardineFactory.begin(username, password); sardine.exists("http://mydomain.sharepoint.com/TeamSite/Documents"); I thought sardine can login auto but it returns 403 error. I didn't use sardine and SharePoint Online before. Remote Authentication in…
Chen
  • 11
  • 2
1
vote
1 answer

Sardine Webdav : How to create a new file?

I'm working on Webdav client Sardine. I'm unable to create a new file (ex: file.txt) on server using Sardine webclient for Webdav. I created the directory using sardine.createDirectory(dirPathToCreate); Is there any way to create a new file using…
sha
  • 1,410
  • 2
  • 18
  • 37
1
vote
2 answers

java sardine over ssl

i'm trying sardine to make a webdav client, but it doesn't connect to my https server. in the usageguide say this about ssl http://code.google.com/p/sardine/wiki/UsageGuide#SSL but i dont know how to provide my custom Http client with my keystore. i…
Alexx Perez
  • 215
  • 2
  • 10
  • 19
1
vote
0 answers

Is it possible to put custom properties in a directory with Sardine?

I am trying to put some custom property in a directory WebDAV, but it is only working with files. I am using Sardine library with Jackrabbit, example: public static void main(String[] args) throws IOException { Sardine sardine =…
Luan Kevin Ferreira
  • 1,184
  • 2
  • 16
  • 40
1
vote
0 answers

How to Move Folder in WebDav using Sardine?

I am using Sardine client to move folder in WebDav. It is not working. But if it is file type it is working fine. sardine.move("http://ip/webdav/kamesh/CloudDrive/test123","http://ip/webdav/kamesh/CloudDrive/Media/kmmm"); Please help me, what I…
kamesh v
  • 77
  • 1
  • 10
1
vote
2 answers

Using Sardines report method to query events from CalDAV server

I'm trying to fetch events from a CalDAV server using Sardine (and biweekly). Fetching an entire calendar is working for me: Sardine sardine = SardineFactory.begin(); InputStream is = sardine.get(CALDAV_URL_STRING); ICalendar iCalendar =…
Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
1
vote
0 answers

How to get access to OneDrive through webDAV on Android?

I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this. 1, what's OneDrive WebDAV address? 2, the Sardine-Android library is the best choice for this? Is there other great libraries? Thanks in…
zhenghuiyan
  • 324
  • 4
  • 10
1
vote
0 answers

Sardine InputStream || HttpClient || SSL Certificate

i am trying to download a file from a webdav server with the Sardine-Android Project Library. I have successfully achieved to iterate through the elements via the DavResource-List. I read through a lot of other questions but i'm a little bit…
1
vote
1 answer

Sardine android webdav

I have a big problem with Sardine on Android. I have download the Sardine library for Android and use it in my project. PUT and GET method works but LIST method don't work and I don't know why. @Override protected void onCreate(Bundle…
urza57
  • 205
  • 2
  • 11
1
2