Unable to connect to Owcloud Caldav

Help
Jeremie
2013-03-25
2014-12-03
  • Jeremie
    Jeremie
    2013-03-25

    Hi,
    I'm trying to use Ical4j to connect to my Owncloud caldav.Owncloud Caldav are like this : http://SERVER//owncloud/remote.php/caldav/calendars/+ username or
    http://SERVER/owncloud/remote.php/caldav/

    I've tried all PathResolver, but no one works.
    Can you help me ?

    My code :
    private static void ICal4J_Connector_Get() throws MalformedURLException, ObjectStoreException, ObjectNotFoundException {
           URL MonUrl = new URL ("http", calDavURL,"");
          CalDavCalendarStore store = new CalDavCalendarStore("-//MacTI//TA2MKS//EN", MonUrl, PathResolver.CALENDAR_SERVER);
           if (store != null) {
              try { store.connect(user, password.toCharArray());
          }
              catch (ObjectStoreException e)
              { // TODO Auto-generated catch block
                  e.printStackTrace(); } }
          for (CalDavCalendarCollection collection: store.getCollections())
          { System.out.println("collection.getId() : " + collection.getId()); }
        }

     
  • Pascal Robert
    Pascal Robert
    2013-03-26

    You will need to add a PathResolver for OwnCloud.

     
  • Swen
    Swen
    2014-12-03

    Is there a PathResolver for OwnCloud available? I try to implement a connection to OwnCloud as well currently.

    Thanks