public interface FtpHost extends NetworkHost
Modifier and Type | Method and Description |
---|---|
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.
|
getName, getPassword, getPort, getPortAsString, getUsername, setName, setPassword, setPort, setPortAsString, setUsername
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.© 2000-2025 Flux Corporation. All rights reserved.