public abstract class AbstractFtpCopyDelegate extends Object implements FtpCopyDelegate
FtpCopyDelegate for copying operations which require to FTP connections, one for reading the
source file and another for writing into the target path| Constructor and Description |
|---|
AbstractFtpCopyDelegate(FtpCommand command,
FtpFileSystem fileSystem)
Creates new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
copyDirectory(org.mule.extension.file.common.api.FileConnectorConfig config,
Path sourcePath,
Path target,
boolean overwrite,
FtpFileSystem writerConnection)
Performs a recursive copy of a directory
|
protected void |
copyFile(org.mule.extension.file.common.api.FileConnectorConfig config,
org.mule.extension.file.common.api.FileAttributes source,
Path target,
boolean overwrite,
FtpFileSystem writerConnection)
Copies one individual file
|
void |
doCopy(org.mule.extension.file.common.api.FileConnectorConfig config,
org.mule.extension.file.common.api.FileAttributes source,
Path targetPath,
boolean overwrite)
Performs a recursive copy
|
public AbstractFtpCopyDelegate(FtpCommand command, FtpFileSystem fileSystem)
command - the FtpCommand which requested this operationfileSystem - the FtpFileSystem which connects to the remote serverpublic void doCopy(org.mule.extension.file.common.api.FileConnectorConfig config,
org.mule.extension.file.common.api.FileAttributes source,
Path targetPath,
boolean overwrite)
doCopy in interface FtpCopyDelegateconfig - the config which is parameterizing this operationsource - the FileAttributes for the file to be copiedtargetPath - the Path to the target destinationoverwrite - whether to overwrite existing target pathsprotected abstract void copyDirectory(org.mule.extension.file.common.api.FileConnectorConfig config,
Path sourcePath,
Path target,
boolean overwrite,
FtpFileSystem writerConnection)
config - the config which is parameterizing this operationsourcePath - the path to the directory to be copiedtarget - the target pathoverwrite - whether to overwrite the target files if they already existswriterConnection - the FtpFileSystem which connects to the target endpointprotected void copyFile(org.mule.extension.file.common.api.FileConnectorConfig config,
org.mule.extension.file.common.api.FileAttributes source,
Path target,
boolean overwrite,
FtpFileSystem writerConnection)
config - the config which is parameterizing this operationsource - the FileAttributes for the file to be copiedtarget - the target pathoverwrite - whether to overwrite the target files if they already existswriterConnection - the FtpFileSystem which connects to the target endpointCopyright © 2018 MuleSoft, Inc.. All rights reserved.