Package org.apache.sshd.common.file.nativefs

Examples of org.apache.sshd.common.file.nativefs.NativeFileSystemView


    final String virtualDir = new FileSystemResource("").getFile().getAbsolutePath();
    this.server.setFileSystemFactory(new NativeFileSystemFactory() {

      @Override
      public FileSystemView createFileSystemView(org.apache.sshd.common.Session session) {
        return new NativeFileSystemView(session.getUsername(), false) {

          @Override
          public String getVirtualUserDir() {
            return virtualDir;
          }
View Full Code Here


    public FileSystemView createFileSystemView(Session session) {
        String dir = computeRootDir(session.getUsername());
        Map<String, String> roots = new HashMap<String, String>();
        roots.put("/", dir);
        return new NativeFileSystemView(session.getUsername(), roots, "/", '/', false);
    }
View Full Code Here

    public FileSystemView createFileSystemView(Session session) {
        Map<String, String> roots = new HashMap<String, String>();
        String dir = new File(System.getProperty("karaf.base")).getAbsolutePath();
        roots.put("/", dir);
        return new NativeFileSystemView(session.getUsername(), roots, "/");
    }
View Full Code Here

    public FileSystemView createFileSystemView(Session session) {
        String dir = computeRootDir(session.getUsername());
        Map<String, String> roots = new HashMap<String, String>();
        roots.put("/", dir);
        return new NativeFileSystemView(session.getUsername(), roots, "/");
    }
View Full Code Here

    public FileSystemView createFileSystemView(Session session) {
        Map<String, String> roots = new HashMap<String, String>();
        String dir = new File(System.getProperty("karaf.base")).getAbsolutePath();
        roots.put("/", dir);
        return new NativeFileSystemView(session.getUsername(), roots, "/");
    }
View Full Code Here

    server.setSubsystemFactories(Arrays.<NamedFactory<Command>> asList(sftp));
    server.setFileSystemFactory(new NativeFileSystemFactory() {

      @Override
      public FileSystemView createFileSystemView(org.apache.sshd.common.Session session) {
        return new NativeFileSystemView(session.getUsername(), false) {

          @Override
          public String getVirtualUserDir() {
            return sftpRootFolder.getAbsolutePath();
          }
View Full Code Here

TOP

Related Classes of org.apache.sshd.common.file.nativefs.NativeFileSystemView

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.