commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stewart-c, Theresa" <>
Subject [VFS] Trying To Use WebDAV
Date Tue, 27 Apr 2010 18:49:35 GMT


I was trying to use the following solution in order to obtain a
FileObject using the WebDAV protocol (posted earlier on a thread):



        WebdavFileSystemConfigBuilder builder =


        final String uri = System.getProperty(TEST_URI);

        FileSystemOptions opts = new FileSystemOptions();

        builder.setRootURI(opts, uri);

        return manager.resolveFile(uri, opts);


and found out that builder.setRootURI(opts,uri); is not a choice on
builder (not supported for the API I have).  Is there an alternative?


Is the TEST_URI the one constructed from:


Credentials credentials =;

String uri = credentials.toFileObjectURL();


Finally, how can the username and password be set?





  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message