public class FTPUploadTransfer extends FTPTransfer implements java.lang.Runnable
AbstractTransferController.HeadInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHMODAFTERUPLOAD |
static java.lang.String |
DELETEAFTERUPLOAD |
static java.lang.String |
DELETEONFAIL |
static java.lang.String |
LISTCOMMAND |
static java.lang.String |
NOTIFYRELATIVEFILENAME |
static java.lang.String |
RELATIVEFILENAME |
static java.lang.String |
RESUMECOMMAND |
static java.lang.String |
ROOTDIR |
static java.lang.String |
SELECTEDFULLFILENAME |
ACCOUNT, ACCOUNTCREATION, ACCOUNTCREATIONCHMOD, ACCOUNTPWD, commandMonitor, COMMANDMONITOR, DELETEFOLDER, DEPRECATEDPASSWORD, DEPRECATEDURL, DEPRECATEDUSERNAME, DISABLEAUTH, featCommand, FTPCOMMANDMONITOR, FTPPOSITIVELOGIN, FTPSESSION, FTPSMODE, FTPSPROT, KEYFILE, PASV, REMOTEVERIFICATION, SCPCLIENT, SFTPCLIENT, SITECOMMAND, targetURL, TRANSFERTYPE, wd, WEAKSSL
BUFFERSIZE, GZIPEXTENSION, ZIPEXTENSION
COMPLETED_STATUS, MAX_AUTH_ATTEMPTS, PREPROCESSING_FILTER, RUNNING_STATUS, WAITING_STATUS
Constructor and Description |
---|
FTPUploadTransfer()
This class implements FTP transfer.
|
Modifier and Type | Method and Description |
---|---|
void |
begin()
Start upload thread.
|
void |
cancel()
Cancel current upload by closing inputstream.
|
java.lang.Object |
execute()
NOT IMPLEMENTED for FTP UPLOAD transfer.
|
protected java.lang.String |
getRelativeFilename(java.io.File cfile,
java.lang.String cname) |
void |
init()
Inits FTP transfer (SSL Factory ...)
|
protected void |
process(java.io.File current)
Process upload tasks including filtering.
|
void |
run()
Main loop
|
protected void |
transfer(java.io.File currentfile,
java.util.HashMap meta)
Upload current file with optional additional parameters.
|
protected void |
transferAndRetry(java.io.File current,
java.util.HashMap meta)
Upload file with optional retry attempts if it fails.
|
chmod, closeCommandMonitor, connect, FTPConnect, FTPDisconnect, FTPDisconnect, getClient, makeAndChangeDirectory, normalizePath, notifyProtocolCommandListeners, notifyProtocolListeners, registerSSLSocketFactory, runCommandMonitor
addChecksumListener, addCompressListener, addFilterListener, addProtocolListener, addSplitListener, addTransferListener, authenticate, checksumCompletedNotification, checksumFailedNotification, checksummingNotification, checksumStartedNotification, checkZipMaxSize, cleanFilter, cleanFilter, compress, compress, compressFolder, compressingNotification, compressionFailedNotification, computeChecksum, executeFilter, executeFilter, getAllowedSourceFiles, getAuthentication, getBlackList, getChecksumListeners, getChunks, getChunkSize, getCompressListeners, getCRC32, getEncoding, getExt, getFilter, getFilter, getFilterChain, getFilterIDs, getFilterImpl, getFilterImpl, getFilterListeners, getFullMaxSize, getHidden, getLastChunkSize, getLong, getMaxDepth, getMaxFiles, getMaxSize, getMD5, getMetaProperties, getMetaScope, getMinSize, getOverwrite, getOverwriteWarn, getParameters, getParamFile, getParentContainer, getPassword, getPolicy, getPreemptiveAuth, getPreProcessingFilter, getPreProcessingFilterImpl, getProtocolListeners, getRawConf, getResume, getResumeOffset, getRetry, getRetryDelay, getRootDir, getServerUrl, getSource, getSplitListeners, getStatus, getTarget, getTemplate, getTemplateScope, getTimeOut, getTmpDir, getTmpFolder, getTransferFileFilter, getTransferListeners, getUsername, getWhiteList, getZipFolder, getZipIgnoreList, getZipMaxSize, getZipOnFly, hexDump, isAllowed, isThreaded, recurse, recursiveCompress, removeChecksumListener, removeCompressListener, removeFilterListener, removeProtocolListener, removeSplitListener, removeTransferListener, rename, setAuthentication, setBlackList, setChunkSize, setEncoding, setExt, setFilter, setFilter, setFilterChain, setFilterIDs, setFilterImpl, setFilterImpl, setFullMaxSize, setHidden, setMaxDepth, setMaxFiles, setMaxSize, setMetaProperties, setMetaScope, setMinSize, setOverwrite, setOverwriteWarn, setParameters, setParamFile, setParentContainer, setPassword, setPolicy, setPreemptiveAuth, setPreProcessingFilter, setPreProcessingFilterImpl, setRawConf, setResume, setResumeOffset, setRetry, setRetryDelay, setRootDir, setServerUrl, setSource, setStatus, setTarget, setTemplate, setTemplateScope, setThreaded, setTimeOut, setTmpDir, setUsername, setWhiteList, setZipFolder, setZipIgnoreList, setZipMaxSize, setZipOnFly, warnOverwrite
public static java.lang.String RELATIVEFILENAME
public static java.lang.String NOTIFYRELATIVEFILENAME
public static java.lang.String SELECTEDFULLFILENAME
public static java.lang.String DELETEONFAIL
public static java.lang.String CHMODAFTERUPLOAD
public static java.lang.String DELETEAFTERUPLOAD
public static java.lang.String RESUMECOMMAND
public static java.lang.String LISTCOMMAND
public static java.lang.String ROOTDIR
public void init() throws ClientException
FTPTransfer
init
in interface TransferController
init
in class FTPTransfer
ClientException
public void begin()
begin
in interface TransferController
begin
in class FTPTransfer
public void run()
run
in interface java.lang.Runnable
protected void process(java.io.File current) throws ClientException
current
- ClientException
protected void transferAndRetry(java.io.File current, java.util.HashMap meta) throws ClientException
currentfile
- meta
- ClientException
protected void transfer(java.io.File currentfile, java.util.HashMap meta) throws ClientException
currentfile
- meta
- additional parametersClientException
protected java.lang.String getRelativeFilename(java.io.File cfile, java.lang.String cname)
public void cancel()
cancel
in interface TransferController
cancel
in class FTPTransfer
public java.lang.Object execute() throws ClientException
execute
in interface TransferController
execute
in class FTPTransfer
ClientException