0

一般的な vfs は初めてです。http://starpoint.com/にある Excel シートを読み込もうとしています...

ブラウザでこの URL を使用するたびに、認証が必要なポップアップが表示されます。上記のコードを使用してみましたが、機能しませんでした。

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

また、 http://username:password@starpoint.com/..../の形式で URL にユーザー名とパスワードを入力しようとしましたが、うまくいきません。

もう 1 つ、ユーザー名が xyz\john の場合、コードの最初の行で xyz が私のドメインになりますか? 他の方法も歓迎されます。

4

0 に答える 0