commons-vfs

Commons VFS and Java.net.URL - Adding support for "sftp://" protocol

We're trying to use Apache Commons VFS to access something over SFTP. It claims to support SFTP, however we're getting a MalformedURLException when it starts. Digging around I see that apache vfs is using java.net.URL. However the documentation tells me that it doesn't actually support sftp:// URLs. Protocol handlers for the followin...

sftp with mutual auth using apache vfs

We're trying to sftp to a server that requires mutual authentication. We need to do this programmatically in java. Is there a way to use mutual authentication (client certificates) with apache vfs when connecting to an SSH server? ...

Apache commons-vfs setting FTP/SFTP file permissions/umask

Hi, I'm working with Apache commons-vfs API for writing files to a FTP/SFTP server. ¿There is a way to specify file permissions after upload to the server or the umask for current FTP/SFTP session? ¿Can you show me an example? Thanks in advance ...

Reopening FileObject with a different reader in commons-vfs

I'm using commons-vfs to traverse down folder hierarchies. As an example: /foo /test.jar If I use the locator file:///foo I can successfully find the child file:///foo/test.jar However, if I try to descend into it, via FileObject.getChildren(), it says that there are no children. By prepending the jar: schema, things work ...

Apache CommonsVFS connect to https server.

Hello, Currently I use Apache CommonsVFS to fetch images from other sites and it works well. The website of CommonsVFS says it supports HTTPS protocol, but I found I could not access those URL starts with https:// using CommonVFS, while I could browse it from my Firefox normally. For example, the following code will yield an exception...