public abstract class FtpFileSystem
extends org.mule.extension.file.common.api.AbstractFileSystem
AbstractFileSystem contract for file systems mounted on FTP/SFTP servers| Constructor and Description |
|---|
FtpFileSystem(String basePath) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
disconnect()
Severs the underlying connection to the remote server
|
protected abstract boolean |
isConnected() |
abstract InputStream |
retrieveFileContent(org.mule.extension.file.common.api.FileAttributes filePayload)
Returns an InputStream which obtains the content for the file of the given
filePayload. |
org.mule.runtime.api.connection.ConnectionValidationResult |
validateConnection()
Validates the underlying connection to the remote server
|
copy, createDirectory, createLock, createMuleLock, delete, getBasePath, getCopyCommand, getCreateDirectoryCommand, getDeleteCommand, getFileMessageMediaType, getListCommand, getMoveCommand, getReadCommand, getRenameCommand, getWriteCommand, isLocked, list, lock, move, read, rename, verifyNotLocked, writepublic FtpFileSystem(String basePath)
public abstract void disconnect()
public abstract InputStream retrieveFileContent(org.mule.extension.file.common.api.FileAttributes filePayload)
filePayload.
The invoked MUST make sure that the returned stream is closed in order for the underlying connection to be closed.
filePayload - a FileAttributes referencing to a FTP fileInputStreampublic org.mule.runtime.api.connection.ConnectionValidationResult validateConnection()
ConnectionValidationResultprotected abstract boolean isConnected()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.