|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FtpHost
Represents an FTP host on a network.
Some file triggers use the timestamps from FTP servers to determine when to fire. However, most FTP servers provide timestamps with minute resolution only, not second resolution. Consequently, some changes to files on FTP servers cannot be detected if two or more file changes occur within the same minute. All files are transferred in binary mode, not ASCII mode. Finally, when an FTP or Secure FTP (SFTP) host is used, if the base directory of the corresponding file criteria is ".", it is silently changed to "" when the flow chart is verified, in order to retain compliance with the FTP specification. If the base directory otherwise starts with a ".", the flow chart will fail verification.
Method Summary | |
---|---|
java.lang.Class |
getFileListParser()
Returns the optional class that parses FTP directory listings. |
FtpTransferMode |
getTransferMode()
Returns the FTP file transfer mode used to transfer files. |
boolean |
isIssueCdCommandsMode()
Indicates whether "CD" commands are issued as part of the FTP protocol. |
boolean |
isPassiveMode()
Returns whether the FTP network connection is passive. |
void |
setFileListParser(java.lang.Class fileListParser)
Sets the class that parses FTP directory listings. |
void |
setIssueCdCommandsMode(boolean enabled)
Sets whether "CD" commands are issued as part of the FTP protocol. |
void |
setPassiveMode(boolean passive)
Sets whether the FTP network connection is passive. |
void |
setTransferMode(FtpTransferMode transferMode)
Sets the FTP file transfer mode used to transfer files. |
Methods inherited from interface flux.file.NetworkHost |
---|
getName, getPassword, getPort, getPortAsString, getUsername, setName, setPassword, setPort, setPortAsString, setUsername |
Method Detail |
---|
java.lang.Class getFileListParser() throws EngineException
EngineException
- If a system error occurs.FtpTransferMode getTransferMode()
boolean isIssueCdCommandsMode()
boolean isPassiveMode()
void setFileListParser(java.lang.Class fileListParser) throws EngineException
fileListParser
- The class that parses FTP directory listings. This
class must implement the flux.file.FtpFileListParser
interface.
java.lang.IllegalArgumentException
- If fileListParser is null, does not
implement the flux.file.FtpFileListParser
interface, or does not have a default
constructor.
EngineException
- If the class argument does not have a
default constructor or does not implement
flux.file.FtpFileListParser.void setIssueCdCommandsMode(boolean enabled)
enabled
- Whether "CD" commands are issued as part of the FTP
protocol.void setPassiveMode(boolean passive)
passive
- Whether the FTP connection is passive.void setTransferMode(FtpTransferMode transferMode)
transferMode
- The FTP transfer mode used to transfers files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |