public abstract class AbstractOriginatingFileProvider extends AbstractFileProvider
FileProvider that handles physical files, such as the files in a local fs, or on an FTP server. An
originating file system cannot be layered on top of another file system.| Modifier and Type | Field and Description |
|---|---|
protected Integer |
defaultTimeout
This holds client connect timeout for the FileProvider classes which extend from this
abstract class.
|
| Constructor and Description |
|---|
AbstractOriginatingFileProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FileSystem |
doCreateFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
Creates a
FileSystem. |
protected FileObject |
findFile(FileName name,
FileSystemOptions fileSystemOptions)
Locates a file from its parsed URI.
|
protected FileObject |
findFile(FileName name,
FileSystemOptions fileSystemOptions,
Integer defaultTimeout)
Locates a file from its parsed URI.Can be used to set default timeout for ftp and ftps
connections.
|
FileObject |
findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
protected FileSystem |
getFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
Returns the FileSystem associated with the specified root.
|
protected FileSystem |
getFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions,
Integer defaultTimeout)
Returns the FileSystem associated with the specified root.
|
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, isFileSystemCached, parseUri, setFileNameParseraddComponent, removeComponentgetContext, getLogger, init, setContext, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapabilitiesprotected Integer defaultTimeout
public FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) throws FileSystemException
baseFile - The base file object.uri - The URI of the file to locatefileSystemOptions - The FileSystem options.FileSystemException - if an error occurs.protected FileObject findFile(FileName name, FileSystemOptions fileSystemOptions) throws FileSystemException
name - The file name.fileSystemOptions - FileSystem options.FileSystemException - if an error occurs.protected FileObject findFile(FileName name, FileSystemOptions fileSystemOptions, Integer defaultTimeout) throws FileSystemException
name - The file name.fileSystemOptions - FileSystem options.FileSystemException - if an error occurs.protected FileSystem getFileSystem(FileName rootName, FileSystemOptions fileSystemOptions) throws FileSystemException
rootName - The root path.fileSystemOptions - The FileSystem options.FileSystemException - if an error occurs.protected FileSystem getFileSystem(FileName rootName, FileSystemOptions fileSystemOptions, Integer defaultTimeout) throws FileSystemException
rootName - The root path.fileSystemOptions - The FileSystem options.FileSystemException - if an error occurs.protected abstract FileSystem doCreateFileSystem(FileName rootName, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystem. If the returned FileSystem implements VfsComponent, it will be initialised.rootName - The name of the root file of the file system to create.fileSystemOptions - The FileSystem options.FileSystemException - if an error occurs.Copyright © 2002–2024 WSO2. All rights reserved.