Package org.apache.commons.vfs.provider.srb

Examples of org.apache.commons.vfs.provider.srb.SRBFileSystemConfigBuilder


     */
    protected SRBVfsFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions) throws FileSystemException {
        super(rootName, null, fileSystemOptions);

        try {
            SRBFileSystemConfigBuilder configurations = SRBFileSystemConfigBuilder.getInstance();
            SRBAccount srbAccount = configurations.getAccount(fileSystemOptions);
            srbFileSystem = new SRBFileSystem(srbAccount);
            attribs.put(SRB_ACCOUNT, srbFileSystem.getAccount());
        } catch (Throwable e) {
            throw new FileSystemException(e);
    }
View Full Code Here


                            5544,
                            cert);
        srbAccount.setDefaultStorageResource("srb.ivec.org");

        FileSystemOptions opts = new FileSystemOptions();
        SRBFileSystemConfigBuilder configurations = SRBFileSystemConfigBuilder.getInstance();
        configurations.setAccount(srbAccount, opts);
        //SRBFileSystem srbFs = (SRBFileSystem) VFS.getManager().resolveFile(getURIString(srbAccount), opts).getFileSystem().getAttribute(SRBVfsFileSystem.SRB_FILESYSTEM);
        SRBFileSystem srbFs = (SRBFileSystem) VFS.getManager().resolveFile(getURIString(srbAccount), opts).getFileSystem().getAttribute(SrbFileSystem.SRB_FILESYSTEM);

        String uriString = new SRBFile(srbFs, srbFs.getHomeDirectory()).toURI().toString();
View Full Code Here

TOP

Related Classes of org.apache.commons.vfs.provider.srb.SRBFileSystemConfigBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.