Class ConnectionFileSystem

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.commons.vfs2.FileSystem, org.apache.commons.vfs2.provider.VfsComponent

    public class ConnectionFileSystem
    extends org.apache.commons.vfs2.provider.AbstractFileSystem
    implements org.apache.commons.vfs2.FileSystem
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionFileSystem​(org.apache.commons.vfs2.FileName rootName, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addCapabilities​(Collection<org.apache.commons.vfs2.Capability> collection)  
      protected org.apache.commons.vfs2.FileObject createFile​(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName)  
      static String getUrl​(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName, ConnectionDetails connectionDetails)
      Creates a url for ConnectionFileName
      org.apache.commons.vfs2.FileObject resolveFile​(org.apache.commons.vfs2.FileName name)  
      • Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem

        addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, setAttribute
      • Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent

        getContext, getLogger, setContext, setLogger
      • Methods inherited from interface org.apache.commons.vfs2.FileSystem

        addJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, setAttribute
    • Constructor Detail

      • ConnectionFileSystem

        public ConnectionFileSystem​(org.apache.commons.vfs2.FileName rootName,
                                    org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
    • Method Detail

      • getUrl

        public static String getUrl​(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName,
                                    ConnectionDetails connectionDetails)
        Creates a url for ConnectionFileName
        Parameters:
        abstractFileName - File name
        connectionDetails - Connection details for the file name
        Returns:
        created url otherwise null
      • createFile

        protected org.apache.commons.vfs2.FileObject createFile​(org.apache.commons.vfs2.provider.AbstractFileName abstractFileName)
                                                         throws Exception
        Specified by:
        createFile in class org.apache.commons.vfs2.provider.AbstractFileSystem
        Throws:
        Exception
      • addCapabilities

        protected void addCapabilities​(Collection<org.apache.commons.vfs2.Capability> collection)
        Specified by:
        addCapabilities in class org.apache.commons.vfs2.provider.AbstractFileSystem
      • resolveFile

        public org.apache.commons.vfs2.FileObject resolveFile​(org.apache.commons.vfs2.FileName name)
                                                       throws org.apache.commons.vfs2.FileSystemException
        Specified by:
        resolveFile in interface org.apache.commons.vfs2.FileSystem
        Overrides:
        resolveFile in class org.apache.commons.vfs2.provider.AbstractFileSystem
        Throws:
        org.apache.commons.vfs2.FileSystemException