Package unlimited.fc.client.engine
Class FCClientEngineHTTP
- java.lang.Object
-
- unlimited.fc.client.engine.FCClientEngine
-
- unlimited.fc.client.engine.FCClientEngineHTTP
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.util.Observer,unlimited.core.transfers.io.FCClientEngineBridge,unlimited.core.transfers.TransferHandler,unlimited.core.transfers.UDPTransferMetrics,unlimited.core.util.common.version.KnowsRemoteServiceVersionInterface
public class FCClientEngineHTTP extends FCClientEngine
-
-
Field Summary
-
Fields inherited from class unlimited.fc.client.engine.FCClientEngine
AUTO, cachePWD, clientAgentID, clientName, clientWorkingPath, commandChannelProtocol, FTP, http, HTTP, isConnected, isFileCatalystServer, isFileCatalystServerEnterprise, isFileCatalystServerPro, isLoggedIn, isTransferringData, maxServerRate, modtimeCache, monitoredTransfer, newDownloadRate, printDebugStatements, readTimeoutLong, remoteServiceVersion, serverAgentID, servletLocation, sessionCount, sessionID, sessionPriority, sessionTimeStamp, shouldPerformServerPostProcess, sizeCache, sslSocketProducer, streamCap, systemCache, targetRate, TERMINAL, TOKEN_AUTH_SUCCESS_HEADER, transferID, transferSettings, UDP, UNABLE_TO_CONNECT_TO_NON_FILE_CATALYST_SERVER
-
Fields inherited from interface unlimited.core.transfers.io.FCClientEngineBridge
FC_125_RESPONSE, FC_150_RESPONSE, FC_200_RESPONSE, FC_202_RESPONSE, FC_211_RESPONSE, FC_213_RESPONSE, FC_214_RESPONSE, FC_215_RESPONSE, FC_220_RESPONSE, FC_221_RESPONSE, FC_225_RESPONSE, FC_226_RESPONSE, FC_230_RESPONSE, FC_250_RESPONSE, FC_252_RESPONSE, FC_255_RESPONSE, FC_256_RESPONSE, FC_257_RESPONSE, FC_260_RESPONSE, FC_331_RESPONSE, FC_350_RESPONSE, FC_421_RESPONSE, FC_450_RESPONSE, FC_550_RESPONSE, FC_553_RESPONSE
-
-
Constructor Summary
Constructors Constructor Description FCClientEngineHTTP(java.lang.String host, int port, java.lang.String serfoLocation, java.lang.String sid, unlimited.core.util.common.logs.LogUtils log)FCClientEngineHTTP(java.lang.String host, int port, java.lang.String serfoLocation, java.lang.String sid, unlimited.core.util.common.logs.LogUtils log, boolean isPrintSolution)FCClientEngineHTTP(java.lang.String host, int port, java.lang.String serfoLocation, unlimited.core.util.common.logs.LogUtils log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyPatch(java.lang.String remoteFile, java.lang.String remotePatch, long offset)Applies a patch file on the remote server to the specified file at the specified offsetbooleancancelTransfer()Cancels the current transfer, if one is occurringvoidcdup()Change to the parent directoryvoidchdir(java.lang.String dir)Change the remote working directory to that suppliedjava.lang.StringcreatePatch(java.lang.String remoteFile, long offset, long length)Creates a new patch file on the remote server that contains the bytes from offset to offeset+length of remoteFilevoiddelete(java.lang.String remoteFile)Delete the specified remote filevoiddeleteAll(java.util.List<java.lang.String> remoteFiles)Bulk delete, deletes all the specified files in a single command.voiddeleteAll(FileListData remoteFiles, boolean ftpDelete)voiddetectFCServer()java.util.stream.Stream<FileListDataItem>doDirStream(DirListParams params)java.util.ArrayList<FileSystemEvent>fileSystemEvents(long timeout)Get a list of file system events from the servervoidfilter(long olderThan, long newerThan, long upperByteLimit, long lowerByteLimit, java.lang.String filterString, int filterMode, boolean applyFilterToDirectories)Initializes the file filter on the server.voidfilter(FileCatalystFileFilter<?> filter)Initializes the file filter on the server.java.lang.ObjectgetComLock()intgetCurrentRate()protected DirListToolgetDirListTool(DirListParams p, FCClientEngine e)unlimited.core.util.common.forceFileOwnership.ForceFileOwnershipConfiggetForceFileOwnerConfig()voidgetHTTP(DownloadTransferRequestData requestData)protected intgetIdealTransferMode(int rate, long length)booleangetIsPrintSolution()protected java.lang.StringgetLocalHost()java.lang.StringgetMD5(java.lang.String remoteFile)Request the MD5 digest of the remote filejava.lang.StringgetMD5(java.lang.String remoteFile, long offset, long length)Request the MD5 digest of the remote fileprotected java.lang.StringgetRemoteHost()intgetServletMultiplier()protected java.lang.StringgetSystKey()protected voidinformServerToWriteReport(PropertyTransmission reportArgs)java.lang.StringinnerSyst()booleanisDeltasStillGrowing()booleanisHttp()should be overridden in FCClientEngineHTTP and return truebooleanisServerTimeout()booleanisSSL()booleanisTransferCancelled()booleanisZipStillExtracting()booleanisZipStillGrowing(java.lang.String zipFileName)voidmkdir(java.lang.String dir)Create the specified remote working directoryvoidmkdlt(java.lang.String srcfile, java.lang.String sigfile, int blockLength, boolean compress, int compLevel, int strategy)Called by ReceiverHandler to create a delta file remotely.voidmkdlt(java.lang.String srcfile, java.lang.String sigfile, int blockLength, boolean compress, int compLevel, int strategy, java.lang.String uniqueID, boolean waitForDeltaCreation)Called by ReceiverHandler to create a delta file remotely.voidmkfile(java.lang.String file)Create the specified remote working directoryjava.lang.Stringmksig(java.lang.String srcfile, boolean compress, java.lang.String uniqueID)java.lang.Stringmksig(java.lang.String srcfile, java.lang.String uniqueID)java.util.Datemodtime(java.lang.String remoteFile)Get modification time for a remote filejava.util.Datemodtime(java.lang.String remoteFile, boolean bypassCache)Get modification time for a remote filevoidmodtime(java.lang.String remoteFile, java.util.Date d)Set modification time for a remote filevoidmoveFilesToServer(java.lang.String remoteFile)voidnoop()Send a NOOP commandprotected java.lang.StringperformAsyncMD5(java.lang.String md5Command)protected java.lang.StringperformSyncedMD5(java.lang.String md5Command)java.lang.String[]prms(java.lang.String fileName)Return the file permission of the file/directory listed in the argument from the remote server.voidput(UploadTransferRequestData data)Put a local file onto the FileCatalyst server.protected voidputHTTP(java.nio.file.Path file, java.lang.String remoteFile, long sfSize, long offset, boolean append, int targetBandwidth)java.lang.Stringpwd()Get the current remote working directoryvoidquit()Quit the FileCatalyst sessionvoidquote(java.lang.String command, java.lang.String[] validCodes)Issue arbitrary FileCatalyst commands to the FileCatalyst server.java.lang.Stringrbfil(java.lang.String srcfile, java.lang.String deltafile, int blockLength, boolean compress, int level, boolean uniqueName)voidreconnect()voidremoteTransferInitiate(ServerToServerTransferSettings settings)Initiate ajava.lang.StringremoteTransferStatus()voidrename(java.lang.String from, java.lang.String to)Rename a file or directoryvoidrmdir(java.lang.String dir)Delete the specified remote working directoryvoidrmdirRecursive(FileListDataItem item)Recursively delete a remote foldervoidsendEmail(java.lang.String emailAddress, int statusCode, java.lang.String note)Instruct the server to send an email to the administratorprotected voidsendTransmitRateCommand(int targetRate, int startRate)WeblinkResultsendWeblink(WeblinkDataContainer linkDO)Creates A Weblink From The Data Container GivenvoidserverPostProcess(java.lang.String file)Execute post processing on the specified fileintsetBandwidth(int bandwidth)voidsetForceFileOwnerConfig(unlimited.core.util.common.forceFileOwnership.ForceFileOwnershipConfig forceOwnerConfig)voidsetIsPrintSolution(boolean isPrintSolution)voidsetServletMultiplier(int servletMultiplier)voidsetTimeout(int millis)voidsetup(java.util.function.Supplier<ClientCredentials> credentials)Login into an account on the FileCatalyst server.booleansite(java.lang.String command)Run a site-specific command on the server.java.lang.Stringsize(java.lang.String fileName)java.lang.Stringsize(java.lang.String fileName, boolean bypassCache)Get the size of the named file from the remote server.inttestApproximateDownloadSpeed()Performs a quick test to determine the approximate download speed to the connected server.inttestApproximateUploadSpeed()Performs a quick test to determine the approximate upload speed to the connected server.inttestMaximumDownloadSpeed()Performs a quick test to determine the approximate download speed to the connected server.inttestMaximumUploadSpeed()Performs a quick test to determine the approximate upload speed to the connected server.voidunzip(java.lang.String remoteFile, boolean maintainPermissions, boolean maintainTimeStamp)Request that a file on the server be unzippedvoidzip(java.lang.String zipFilename, java.util.List remoteFiles, long zipSizeLimit, boolean waitForZipCreation, boolean needsRecurse)-
Methods inherited from class unlimited.fc.client.engine.FCClientEngine
abort, abortAck, accessTime, addClientConnectKey, applyRemoteFileAttributesToLocalFile, binary, buildFilterCommand, buildUNZIPCommand, buildWeblinkCommand, checkDownloadPermissions, checkUploadModifyPermissions, close, createFCClientEngine, createFCClientEngine, createFCClientEngine, createFCClientEngine, createFCClientEngine, createFCClientEngine, createThirdPartyFTPServerDataConnection, creationTime, ctrlClient, deleteAll, deleteAll, detectSessionKilledByAdmin, dir, dir, dir, dir, dir, dirRaw, doDirListing, doDirListing, doDirStream, exists, exists, featureSet, flushCaches, generateNewTransferID, get, getAllServerClientConfigs, getAutoDetectData, getBlastRate, getCachedPWD, getClientAgentID, getClientIdentifier, getClientString, getClientSubIdentifier, getCompLevel, getCompMethod, getCompStrategy, getCongestionControlAggression, getCurrentFileToIDs, getCurrentGoodputRate, getCurrentRTT, getDataPort, getDone, getDone, getErrorMessage, getFCClientObject, getHashCode, getIdealConcurrentFTPStreams, getIsTransferringData, getLastReplyText, getLastThroughtput, getLastValidReply, getLogger, getMD5, getMeanEffectiveRate, getMonitoredTransfer, getNumFTPStreams, getNumUDPSockets, getPacketLoss, getPlatForm, getRemoteServiceVersion, getReporter, getReportManager, getReportStatus, getReportStatus, getServerAgentID, getServerConfigurationValue, getServerLinkExpiryDayValue, getServerVersion, getServletLocation, getSessionCount, getSessionID, getSpeedcache, getStartRate, getTaskID, getTransferGoodput, getTransferID, getTransferLength, getTransferMetrics, getTransferPercent, getTransferRate, getTransferSettings, getTransferThroughput, getTransmitZipRatio, getUserEmail, getUserFullName, getUserPermissions, getVersionForSetup, getWelcomeMessage, gobbleExtraReplies, hasAutoDetectData, hasReporter, help, initAES, initFCTransfer, initSOCKS, initSOCKSAuthentication, innerZipChunkTest, isAborted, isAllowConnectNonFileCatalystServer, isChannelClosed, isComplete, isCongestionControl, isConnected, isFileCatalystServer, isFileCatalystServerEnterprise, isFileCatalystServerPro, isForceTCPmodeACKs, isLinkEnabledOnServer, isLoggedIn, isProgressiveTransfer, isQuitting, isReportingEnabled, isServerBandwidthOverride, isTimeout, isTransferComplete, isTransferError, isUseCompression, lastServerRestrictedRate, lastValidReply, lastValidReply, log, log, monitorIsNull, notifyServerOfCurrentRTT, numFTPStreams, numFTPStreams, overrideSessionID, putDone, putDone, putIsFinished, quit, readTimeout, readTimeout, reconnect, refreshCachedPWD, registerReportListener, remoteServiceVersion, remoteSynchFile, resetTransferVariables, sendJobStatus, sendRTTKeepALive, serverSupportsFSEvents, serverSupportsUDP, setAutoDetectData, setBandwidthFTPReceiver, setBandwidthFTPTransmit, setBandwidthRemoteTransfer, setBandwidthUDPSender, setBandwidthUPDReceiver, setClientAgentID, setClientIdentifier, setClientName, setClientString, setClientSubIdentifier, setClientWorkingPath, setCompLevel, setCompMethod, setCompStrategy, setCongestionControl, setCongestionControlAggression, setConnectMode, setCurrentFilesMatch, setCurrentFileToIDs, setDataPort, setDownloadRate, setErrorMessage, setForceTCPmodeACKs, setHttp, setLastValidReply, setLogStream, setMaxRate, setMaxServerRate, setMonitoredTransfer, setNumFTPStreams, setNumUDPSockets, setOverrideServerBandwidth, setProgressiveTransfer, setQuitting, setReadTimeout, setReadTimeoutLong, setReportManager, setServletLocation, setSessionPriority, setSslSocketProducer, setStartRate, setTaskID, setTransferID, setTransferSettings, setUDPTransferMetrics, setUseCompression, setUserEmail, setUserFullName, setVerifyMode, setWelcomeMessage, shouldPerformServerPostProcess, streamWithInlineParse, streamWithInlineParse, streamWithInlineParse, streamWithInlineParse, syncFileType, system, testDataConnection, testDataConnection, testIncomingUDP, testMultiDataConnection, testOutgoingUDP, testUDPACKs, update, updateReportWriter, validateLinkDataContainer, waitingForAbortAck, zip, zip, zipErrors
-
-
-
-
Constructor Detail
-
FCClientEngineHTTP
public FCClientEngineHTTP(java.lang.String host, int port, java.lang.String serfoLocation, unlimited.core.util.common.logs.LogUtils log) throws java.io.IOException- Throws:
java.io.IOException
-
FCClientEngineHTTP
public FCClientEngineHTTP(java.lang.String host, int port, java.lang.String serfoLocation, java.lang.String sid, unlimited.core.util.common.logs.LogUtils log) throws java.io.IOException- Throws:
java.io.IOException
-
FCClientEngineHTTP
public FCClientEngineHTTP(java.lang.String host, int port, java.lang.String serfoLocation, java.lang.String sid, unlimited.core.util.common.logs.LogUtils log, boolean isPrintSolution) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
getComLock
public java.lang.Object getComLock()
- Overrides:
getComLockin classFCClientEngine
-
getSystKey
protected java.lang.String getSystKey()
- Overrides:
getSystKeyin classFCClientEngine
-
noop
public void noop() throws unlimited.core.util.common.exception.FCException, java.io.IOExceptionDescription copied from class:FCClientEngineSend a NOOP command- Overrides:
noopin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
pwd
public java.lang.String pwd() throws unlimited.core.util.common.exception.FCException, java.io.IOExceptionDescription copied from class:FCClientEngineGet the current remote working directory- Overrides:
pwdin classFCClientEngine- Returns:
- the current working directory
- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
put
public void put(UploadTransferRequestData data) throws java.io.IOException, unlimited.core.util.common.exception.FCException
Put a local file onto the FileCatalyst server. It is placed in the current directory. Allows appending if current file exists- Overrides:
putin classFCClientEngine- Parameters:
localPath- path of the local fileremoteFile- name of remote file in current directoryoutRate- sending bandwidthnumDFEncoders- number of DF encoders to be usedappend- true if appending, false otherwise- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
getIdealTransferMode
protected int getIdealTransferMode(int rate, long length)
-
putHTTP
protected void putHTTP(java.nio.file.Path file, java.lang.String remoteFile, long sfSize, long offset, boolean append, int targetBandwidth) throws java.io.IOException, unlimited.core.util.common.exception.FCException, java.io.IOException- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
moveFilesToServer
public void moveFilesToServer(java.lang.String remoteFile) throws unlimited.core.util.common.exception.FCException, java.io.IOException- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
getHTTP
public void getHTTP(DownloadTransferRequestData requestData) throws java.io.IOException, unlimited.core.util.common.exception.FCException, java.io.IOException
- Overrides:
getHTTPin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
getLocalHost
protected java.lang.String getLocalHost()
- Overrides:
getLocalHostin classFCClientEngine- Returns:
-
getRemoteHost
protected java.lang.String getRemoteHost()
- Overrides:
getRemoteHostin classFCClientEngine- Returns:
-
size
public java.lang.String size(java.lang.String fileName) throws java.io.IOException, unlimited.core.util.common.exception.FCException- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
size
public java.lang.String size(java.lang.String fileName, boolean bypassCache) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineGet the size of the named file from the remote server.- Specified by:
sizein interfaceunlimited.core.transfers.io.FCClientEngineBridge- Overrides:
sizein classFCClientEngine- Parameters:
fileName- name of the file- Returns:
- the size of the file
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
cdup
public void cdup() throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineChange to the parent directory- Overrides:
cdupin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
chdir
public void chdir(java.lang.String dir) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineChange the remote working directory to that supplied- Overrides:
chdirin classFCClientEngine- Parameters:
dir- name of remote directory to change to- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
deleteAll
public void deleteAll(java.util.List<java.lang.String> remoteFiles) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineBulk delete, deletes all the specified files in a single command. The server returns intermediate replies to keep the connection alive during a long delete- Overrides:
deleteAllin classFCClientEngine- Parameters:
remoteFiles- files to delete- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
deleteAll
public void deleteAll(FileListData remoteFiles, boolean ftpDelete) throws unlimited.core.util.common.exception.FCException, java.io.IOException
- Overrides:
deleteAllin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
delete
public void delete(java.lang.String remoteFile) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineDelete the specified remote file- Overrides:
deletein classFCClientEngine- Parameters:
remoteFile- name of remote file to delete- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
setup
public void setup(java.util.function.Supplier<ClientCredentials> credentials) throws java.io.IOException, unlimited.core.util.common.exception.FCException
Description copied from class:FCClientEngineLogin into an account on the FileCatalyst server. This call completes the entire login process Note that we only use the User/Pass if we haven't set the tokens on this client. If we have tokens we call that method.- Overrides:
setupin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
detectFCServer
public void detectFCServer() throws java.io.IOException, unlimited.core.util.common.exception.FCException- Overrides:
detectFCServerin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
mkdir
public void mkdir(java.lang.String dir) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineCreate the specified remote working directory- Overrides:
mkdirin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
rmdir
public void rmdir(java.lang.String dir) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineDelete the specified remote working directory- Overrides:
rmdirin classFCClientEngine- Parameters:
dir- name of remote directory to delete- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
rmdirRecursive
public void rmdirRecursive(FileListDataItem item) throws unlimited.core.util.common.exception.FCException, java.io.IOException
Recursively delete a remote folder- Overrides:
rmdirRecursivein classFCClientEngine- Parameters:
item-- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCExceptionjava.lang.Exception
-
fileSystemEvents
public java.util.ArrayList<FileSystemEvent> fileSystemEvents(long timeout) throws java.io.IOException, unlimited.core.util.common.exception.FCException
Get a list of file system events from the server- Overrides:
fileSystemEventsin classFCClientEngine- Returns:
- String a list of file system events from the server
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
rename
public void rename(java.lang.String from, java.lang.String to) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineRename a file or directory- Overrides:
renamein classFCClientEngine- Parameters:
from- name of file or directory to renameto- intended name- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
site
public boolean site(java.lang.String command) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineRun a site-specific command on the server. Support for commands is dependent on the server- Overrides:
sitein classFCClientEngine- Parameters:
command- the site command to run- Returns:
- true if command ok, false if command not implemented
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
quit
public void quit() throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineQuit the FileCatalyst session- Overrides:
quitin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
quote
public void quote(java.lang.String command, java.lang.String[] validCodes) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineIssue arbitrary FileCatalyst commands to the FileCatalyst server.- Specified by:
quotein interfaceunlimited.core.transfers.io.FCClientEngineBridge- Overrides:
quotein classFCClientEngine- Parameters:
command- command to be sent to servervalidCodes- valid return codes for this command- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
mkfile
public void mkfile(java.lang.String file) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineCreate the specified remote working directory- Overrides:
mkfilein classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
filter
public void filter(FileCatalystFileFilter<?> filter) throws java.io.IOException
Description copied from class:FCClientEngineInitializes the file filter on the server. This filter is applied to the next listing that is requested from the server. It is immediately reset by the server after each listing. Therefore it should be reset each time a listing is done if needed.- Overrides:
filterin classFCClientEngine- Parameters:
filter- Filter object containing the data that you wish to filter on- Throws:
java.io.IOException
-
filter
public void filter(long olderThan, long newerThan, long upperByteLimit, long lowerByteLimit, java.lang.String filterString, int filterMode, boolean applyFilterToDirectories) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionInitializes the file filter on the server. THis filter is applied to the next listing that is requested from the server. It is immediately reset by the server after each listing. Therefore it should be reset each time a listing is done if needed.- Overrides:
filterin classFCClientEngine- Parameters:
olderThan-newerThan-upperByteLimit-lowerByteLimit-filterString-filterMode-- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
mksig
public java.lang.String mksig(java.lang.String srcfile, java.lang.String uniqueID) throws java.io.IOException, unlimited.core.util.common.exception.FCException- Overrides:
mksigin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
mksig
public java.lang.String mksig(java.lang.String srcfile, boolean compress, java.lang.String uniqueID) throws java.io.IOException, unlimited.core.util.common.exception.FCException- Overrides:
mksigin classFCClientEngine- Parameters:
srcfile- String Name of the source file.compress- boolean Compress flag for the signature. Default false (value currently ignored in v2.4.2)uniqueID- String Unique identifier for the delta transfer- Returns:
- String reply from target. if target < v2.4.2 will return: block size if target >= v2.4.2 will return: block size + " " + "unique file name"
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
mkdlt
public void mkdlt(java.lang.String srcfile, java.lang.String sigfile, int blockLength, boolean compress, int compLevel, int strategy) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionCalled by ReceiverHandler to create a delta file remotely. Legacy call -- pre v2.4.2. Does not include a UNIQUEID, so multiple concurrent delta calculations on the same file may corrupt it.- Overrides:
mkdltin classFCClientEngine- Parameters:
srcfile- Stringsigfile- StringblockLength- intcompress- booleancompLevel- intstrategy- int- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
mkdlt
public void mkdlt(java.lang.String srcfile, java.lang.String sigfile, int blockLength, boolean compress, int compLevel, int strategy, java.lang.String uniqueID, boolean waitForDeltaCreation) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionCalled by ReceiverHandler to create a delta file remotely. Uses UNIQUEID, to allow concurrent deltas to be created on the same file. v2.4.2+.- Overrides:
mkdltin classFCClientEngine- Parameters:
srcfile- Stringsigfile- StringblockLength- intcompress- booleancompLevel- intstrategy- intuniqueID- String- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
rbfil
public java.lang.String rbfil(java.lang.String srcfile, java.lang.String deltafile, int blockLength, boolean compress, int level, boolean uniqueName) throws java.io.IOException, unlimited.core.util.common.exception.FCException- Overrides:
rbfilin classFCClientEngine- Parameters:
srcfile-deltafile-blockLength- intcompress- booleanlevel- intuniqueName- boolean- Returns:
- String The remote filename, may be the original destination, or a unique name.
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
setTimeout
public void setTimeout(int millis) throws java.net.SocketException- Throws:
java.net.SocketException
-
getMD5
public java.lang.String getMD5(java.lang.String remoteFile, long offset, long length) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionRequest the MD5 digest of the remote file- Overrides:
getMD5in classFCClientEngine- Parameters:
remoteFile- name of remote file to delete- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
prms
public java.lang.String[] prms(java.lang.String fileName) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineReturn the file permission of the file/directory listed in the argument from the remote server.- Overrides:
prmsin classFCClientEngine- Parameters:
fileName- name of the file- Returns:
- permissions
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
getMD5
public java.lang.String getMD5(java.lang.String remoteFile) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineRequest the MD5 digest of the remote file- Overrides:
getMD5in classFCClientEngine- Parameters:
remoteFile- name of remote file to delete- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
performSyncedMD5
protected java.lang.String performSyncedMD5(java.lang.String md5Command) throws java.io.IOException, unlimited.core.util.common.exception.FCException- Overrides:
performSyncedMD5in classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
performAsyncMD5
protected java.lang.String performAsyncMD5(java.lang.String md5Command) throws java.io.IOException- Overrides:
performAsyncMD5in classFCClientEngine- Throws:
java.io.IOException
-
serverPostProcess
public void serverPostProcess(java.lang.String file) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineExecute post processing on the specified file- Overrides:
serverPostProcessin classFCClientEngine- Parameters:
file- The file on which to perform post processing- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
modtime
public void modtime(java.lang.String remoteFile, java.util.Date d) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineSet modification time for a remote file- Overrides:
modtimein classFCClientEngine- Parameters:
remoteFile- name of remote file- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
modtime
public java.util.Date modtime(java.lang.String remoteFile) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineGet modification time for a remote file- Overrides:
modtimein classFCClientEngine- Parameters:
remoteFile- name of remote file- Returns:
- modification time of file as a date
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
modtime
public java.util.Date modtime(java.lang.String remoteFile, boolean bypassCache) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionGet modification time for a remote file- Overrides:
modtimein classFCClientEngine- Parameters:
remoteFile- name of remote file- Returns:
- modification time of file as a date
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
isHttp
public boolean isHttp()
should be overridden in FCClientEngineHTTP and return true- Overrides:
isHttpin classFCClientEngine- Returns:
-
innerSyst
public java.lang.String innerSyst() throws java.io.IOException, unlimited.core.util.common.exception.FCException- Overrides:
innerSystin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
setBandwidth
public int setBandwidth(int bandwidth)
- Overrides:
setBandwidthin classFCClientEngine
-
cancelTransfer
public boolean cancelTransfer()
Description copied from class:FCClientEngineCancels the current transfer, if one is occurring- Specified by:
cancelTransferin interfaceunlimited.core.transfers.TransferHandler- Overrides:
cancelTransferin classFCClientEngine
-
isTransferCancelled
public boolean isTransferCancelled()
- Specified by:
isTransferCancelledin interfaceunlimited.core.transfers.TransferHandler- Overrides:
isTransferCancelledin classFCClientEngine- Returns:
- true if a transfer was cancelled
-
getDirListTool
protected DirListTool getDirListTool(DirListParams p, FCClientEngine e) throws unlimited.core.util.common.exception.FCException, java.io.IOException
- Overrides:
getDirListToolin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
doDirStream
public java.util.stream.Stream<FileListDataItem> doDirStream(DirListParams params) throws unlimited.core.util.common.exception.FCException, java.io.IOException, java.net.SocketException, java.io.UnsupportedEncodingException
- Overrides:
doDirStreamin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOExceptionjava.net.SocketExceptionjava.io.UnsupportedEncodingException
-
isServerTimeout
public boolean isServerTimeout() throws unlimited.core.util.common.exception.FCException- Overrides:
isServerTimeoutin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCException
-
zip
public void zip(java.lang.String zipFilename, java.util.List remoteFiles, long zipSizeLimit, boolean waitForZipCreation, boolean needsRecurse) throws java.io.IOException, unlimited.core.util.common.exception.FCException- Overrides:
zipin classFCClientEngine- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
isDeltasStillGrowing
public boolean isDeltasStillGrowing() throws unlimited.core.util.common.exception.FCException, java.io.IOException- Overrides:
isDeltasStillGrowingin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
isZipStillGrowing
public boolean isZipStillGrowing(java.lang.String zipFileName) throws unlimited.core.util.common.exception.FCException, java.io.IOException- Overrides:
isZipStillGrowingin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
isZipStillExtracting
public boolean isZipStillExtracting() throws unlimited.core.util.common.exception.FCException, java.io.IOException- Overrides:
isZipStillExtractingin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
unzip
public void unzip(java.lang.String remoteFile, boolean maintainPermissions, boolean maintainTimeStamp) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionDescription copied from class:FCClientEngineRequest that a file on the server be unzipped- Overrides:
unzipin classFCClientEngine- Parameters:
remoteFile- name of remote file to unzip- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
sendEmail
public void sendEmail(java.lang.String emailAddress, int statusCode, java.lang.String note) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionInstruct the server to send an email to the administrator- Overrides:
sendEmailin classFCClientEngine- Parameters:
email- the senders email addresscode- the constant code representing the transfer status- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
getServletMultiplier
public int getServletMultiplier()
-
setServletMultiplier
public void setServletMultiplier(int servletMultiplier)
-
reconnect
public void reconnect() throws unlimited.core.util.common.exception.FCException, java.io.IOException- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
getCurrentRate
public int getCurrentRate()
- Overrides:
getCurrentRatein classFCClientEngine
-
getIsPrintSolution
public boolean getIsPrintSolution()
-
setIsPrintSolution
public void setIsPrintSolution(boolean isPrintSolution)
-
testApproximateUploadSpeed
public int testApproximateUploadSpeed() throws unlimited.core.util.common.exception.FCException, java.io.IOExceptionDescription copied from class:FCClientEnginePerforms a quick test to determine the approximate upload speed to the connected server.- Overrides:
testApproximateUploadSpeedin classFCClientEngine- Returns:
- int the rate detected in Kbps
- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
testApproximateDownloadSpeed
public int testApproximateDownloadSpeed() throws unlimited.core.util.common.exception.FCException, java.io.IOExceptionDescription copied from class:FCClientEnginePerforms a quick test to determine the approximate download speed to the connected server.- Overrides:
testApproximateDownloadSpeedin classFCClientEngine- Returns:
- int the rate detected in Kbps
- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
testMaximumUploadSpeed
public int testMaximumUploadSpeed() throws unlimited.core.util.common.exception.FCException, java.io.IOExceptionDescription copied from class:FCClientEnginePerforms a quick test to determine the approximate upload speed to the connected server.- Overrides:
testMaximumUploadSpeedin classFCClientEngine- Returns:
- int the rate detected in Kbps
- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
testMaximumDownloadSpeed
public int testMaximumDownloadSpeed() throws unlimited.core.util.common.exception.FCException, java.io.IOExceptionDescription copied from class:FCClientEnginePerforms a quick test to determine the approximate download speed to the connected server.- Overrides:
testMaximumDownloadSpeedin classFCClientEngine- Returns:
- int the rate detected in Kbps
- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
remoteTransferInitiate
public void remoteTransferInitiate(ServerToServerTransferSettings settings) throws java.io.IOException, unlimited.core.util.common.exception.FCException
Description copied from class:FCClientEngineInitiate a- Overrides:
remoteTransferInitiatein classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
createPatch
public java.lang.String createPatch(java.lang.String remoteFile, long offset, long length) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionCreates a new patch file on the remote server that contains the bytes from offset to offeset+length of remoteFile- Overrides:
createPatchin classFCClientEngine- Parameters:
remoteFile-offset-length-- Returns:
- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
applyPatch
public void applyPatch(java.lang.String remoteFile, java.lang.String remotePatch, long offset) throws java.io.IOException, unlimited.core.util.common.exception.FCExceptionApplies a patch file on the remote server to the specified file at the specified offset- Overrides:
applyPatchin classFCClientEngine- Parameters:
remoteFile-remotePatch-offset-- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
remoteTransferStatus
public java.lang.String remoteTransferStatus() throws unlimited.core.util.common.exception.FCException, java.io.IOException- Overrides:
remoteTransferStatusin classFCClientEngine- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
sendWeblink
public WeblinkResult sendWeblink(WeblinkDataContainer linkDO) throws unlimited.core.util.common.exception.FCException, java.io.IOException
Description copied from class:FCClientEngineCreates A Weblink From The Data Container Given- Overrides:
sendWeblinkin classFCClientEngine- Parameters:
linkDO- - Data Container Containing Data For The Link- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
sendTransmitRateCommand
protected void sendTransmitRateCommand(int targetRate, int startRate) throws java.io.IOException- Overrides:
sendTransmitRateCommandin classFCClientEngine- Throws:
java.io.IOException
-
isSSL
public boolean isSSL()
-
getForceFileOwnerConfig
public unlimited.core.util.common.forceFileOwnership.ForceFileOwnershipConfig getForceFileOwnerConfig()
- Specified by:
getForceFileOwnerConfigin interfaceunlimited.core.transfers.io.FCClientEngineBridge- Overrides:
getForceFileOwnerConfigin classFCClientEngine
-
setForceFileOwnerConfig
public void setForceFileOwnerConfig(unlimited.core.util.common.forceFileOwnership.ForceFileOwnershipConfig forceOwnerConfig)
-
informServerToWriteReport
protected void informServerToWriteReport(PropertyTransmission reportArgs)
- Overrides:
informServerToWriteReportin classFCClientEngine
-
-