public class RecursiveDownloadTransferHandler
extends java.lang.Object
| Constructor and Description |
|---|
RecursiveDownloadTransferHandler(FileCatalystReceiveHandler handler,
java.lang.String remoteFile,
java.nio.file.Path localFile,
int recurseLevel) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertLocalFileIsDirectory() |
void |
assertRemoteFileIsNotParentOfDirectory() |
void |
assertRunning() |
void |
attemptDownloadRemoteFile() |
void |
checkCallbackHandler() |
void |
createEmptyDirectoriesIfNeeded() |
void |
doCLIRegexCheck() |
void |
doTopLevelFiltering() |
void |
getRemoteFileSizeStringValue() |
void |
getTempFileSize() |
void |
handleDirectoryDownload() |
void |
handleFileDownload() |
boolean |
isRemoteFileDir() |
boolean |
isTransferNotRunning() |
void |
setSizeFields() |
void |
setStartOfTransferValues() |
void |
setupLocalPathStructure() |
public RecursiveDownloadTransferHandler(FileCatalystReceiveHandler handler, java.lang.String remoteFile, java.nio.file.Path localFile, int recurseLevel)
handler - TODOremoteFile - localFile - recurseLevel - indicates how many levels deep we are in the recursion.java.lang.Exceptionpublic void handleFileDownload()
throws Return,
java.io.IOException,
FCException,
java.lang.Exception
Returnjava.io.IOExceptionFCExceptionjava.lang.Exceptionpublic void attemptDownloadRemoteFile()
throws java.io.IOException,
Return,
FCException,
java.lang.Exception
java.io.IOExceptionReturnFCExceptionjava.lang.Exceptionpublic void setSizeFields()
public void setupLocalPathStructure()
throws java.io.IOException
java.io.IOExceptionpublic void checkCallbackHandler()
throws Return
Returnpublic void doTopLevelFiltering()
throws Return
Returnpublic void getTempFileSize()
public void getRemoteFileSizeStringValue()
throws java.io.IOException,
FCException
java.io.IOExceptionFCExceptionpublic void doCLIRegexCheck()
throws Return
Returnpublic void handleDirectoryDownload()
throws Return,
java.io.IOException,
FCException
Returnjava.io.IOExceptionFCExceptionpublic void createEmptyDirectoriesIfNeeded()
throws java.io.IOException
java.io.IOExceptionpublic void assertLocalFileIsDirectory()
throws Return
Returnpublic boolean isRemoteFileDir()
public void setStartOfTransferValues()
public void assertRemoteFileIsNotParentOfDirectory()
throws Return
Returnpublic void assertRunning()
throws Return
Returnpublic boolean isTransferNotRunning()