commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Wegscheid <dwegsch...@sbcglobal.net>
Subject Can I have global VFS FileSystemOptions?
Date Fri, 14 Oct 2005 18:08:45 GMT
I'm just starting out with VFS. I figured out that I
can do:

     FileSystemOptions options = new
FileSystemOptions();
      
      WebdavFileSystemConfigBuilder
webdavFileSystemConfigBuilder =
WebdavFileSystemConfigBuilder.getInstance();
     
webdavFileSystemConfigBuilder.setProxyHost(options,
"proxy.zxxxxxx.com");
     
webdavFileSystemConfigBuilder.setProxyPort(options,
8080);
      
      FileObject dir =
fsManager.resolveFile("webdav://user:pass@host/dav/album",
options);

Is there a way to get the options put in so that I do
not need to pass it to each resolveFile call?

---------------------------------------------------------------------
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