I am new to common vfs. I am trying to read an excel sheet located on http://starpoint.com/...
Whenever i use this url on browser, it gives me authentication required pop up.I tried using the above code but it didn't work.
StaticUserAuthenticator auth = new StaticUserAuthenticator("domain", "username", "password");
FileSystemOptions opts = new FileSystemOptions();
DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(opts, auth);
FileObject fo = VFS.getManager().resolveFile("htttp://starpoint.com/../", opts);
I also tried entering username and password in the url by this format http://username:password@starpoint.com/..../ but it does not work.
One more thing if my username is xyz\john then will xyz be my domain in the first line of the code? Any other way will also be appreciated.