Example usage for org.apache.commons.vfs2.provider.sftp SftpFileSystem getRootURI

List of usage examples for org.apache.commons.vfs2.provider.sftp SftpFileSystem getRootURI

Introduction

In this page you can find the example usage for org.apache.commons.vfs2.provider.sftp SftpFileSystem getRootURI.

Prototype

@Override
public String getRootURI() 

Source Link

Document

Returns the root URI specified for this file System.

Usage

From source file:sf.net.experimaestro.connectors.SSHConnector.java

@Override
protected boolean contains(FileSystem fileSystem) throws FileSystemException {
    if (fileSystem instanceof SftpFileSystem) {
        SftpFileSystem sftpFS = (SftpFileSystem) fileSystem;
        // FIXME: not really nice
        return sftpFS.getRootURI().equals(getFileSystem().getRootURI());
    }//from  w  ww .  j  a  v a  2s  . co  m
    return false;
}