commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [VFS] Set ftp connection timeout in commons.VFS
Date Thu, 15 Sep 2005 05:45:01 GMT
gvasconcelos@baufest.com wrote:
>Can't it be done without modifying the source? (like setting a parameter)
>  
The next nightly will allow you to set the data timeout through 
fileSystemOptions.

        FileSystemOptions opts = new FileSystemOptions();
        FtpFileSystemConfigBuilder.getInstance().setDataTimeout(opts, 
new Integer(10));
        FileObject fo = VFS.getManager().resolveFile("ftp://...", opts);

Hope this helps!
---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message