Class FtpFileSystemConfigBuilder
java.lang.Object
org.apache.commons.vfs.FileSystemConfigBuilder
org.apache.commons.vfs.provider.ftp.FtpFileSystemConfigBuilder
The config builder for various ftp configuration options
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Mario Ivankovits
-
Method Summary
Modifier and TypeMethodDescriptionprotected Classget the language code used by the server.org.apache.commons.net.ftp.parser.FTPFileEntryParserFactorystatic FtpFileSystemConfigBuilderseeFTPClientConfigfor details and examples.get the language code used by the server.seeFTPClientConfigfor details and examples.String[]seeFTPClientConfigfor details and examples.voidsetDataTimeout(FileSystemOptions opts, Integer dataTimeout) set the data timeout for the ftp client.
If you set the dataTimeout tonullno dataTimeout will be set on the ftp client.voidsetDefaultDateFormat(FileSystemOptions opts, String defaultDateFormat) set the language code used by the server.voidsetEntryParser(FileSystemOptions opts, String key) set the FQCN of your FileEntryParser used to parse the directory listing from your server.
If you do not use the default commons-net FTPFileEntryParserFactory e.g.voidsetEntryParserFactory(FileSystemOptions opts, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory factory) FTPFileEntryParserFactory which will be used for ftp-entry parsingvoidsetPassiveMode(FileSystemOptions opts, boolean passiveMode) enter into passive modevoidsetRecentDateFormat(FileSystemOptions opts, String recentDateFormat) seeFTPClientConfigfor details and examples.voidsetServerLanguageCode(FileSystemOptions opts, String serverLanguageCode) set the language code used by the server.voidsetServerTimeZoneId(FileSystemOptions opts, String serverTimeZoneId) seeFTPClientConfigfor details and examples.voidsetShortMonthNames(FileSystemOptions opts, String[] shortMonthNames) seeFTPClientConfigfor details and examples.voidsetUserDirIsRoot(FileSystemOptions opts, boolean userDirIsRoot) use user directory as root (do not change to fs root)Methods inherited from class FileSystemConfigBuilder
getParam, hasParam, setParam
-
Method Details
-
getInstance
-
setEntryParserFactory
public void setEntryParserFactory(FileSystemOptions opts, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory factory) FTPFileEntryParserFactory which will be used for ftp-entry parsing- Parameters:
opts-factory- instance of your factory
-
getEntryParserFactory
public org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory getEntryParserFactory(FileSystemOptions opts) - Parameters:
opts-- See Also:
-
setEntryParser
set the FQCN of your FileEntryParser used to parse the directory listing from your server.
If you do not use the default commons-net FTPFileEntryParserFactory e.g. by usingsetEntryParserFactory(FileSystemOptions, FTPFileEntryParserFactory)this is the "key" parameter passed as argument into your custom factory- Parameters:
opts-key-
-
getEntryParser
- Parameters:
opts-- See Also:
-
getConfigClass
- Specified by:
getConfigClassin classFileSystemConfigBuilder
-
setPassiveMode
enter into passive mode- Parameters:
opts-passiveMode-
-
getPassiveMode
- Parameters:
opts-- See Also:
-
setUserDirIsRoot
use user directory as root (do not change to fs root)- Parameters:
opts-userDirIsRoot-
-
getUserDirIsRoot
- Parameters:
opts-- See Also:
-
getDataTimeout
- Parameters:
opts-- See Also:
-
setDataTimeout
set the data timeout for the ftp client.
If you set the dataTimeout tonullno dataTimeout will be set on the ftp client.- Parameters:
opts-dataTimeout-
-
getServerLanguageCode
get the language code used by the server. seeFTPClientConfigfor details and examples. -
setServerLanguageCode
set the language code used by the server. seeFTPClientConfigfor details and examples. -
getDefaultDateFormat
get the language code used by the server. seeFTPClientConfigfor details and examples. -
setDefaultDateFormat
set the language code used by the server. seeFTPClientConfigfor details and examples. -
getRecentDateFormat
seeFTPClientConfigfor details and examples. -
setRecentDateFormat
seeFTPClientConfigfor details and examples. -
getServerTimeZoneId
seeFTPClientConfigfor details and examples. -
setServerTimeZoneId
seeFTPClientConfigfor details and examples. -
getShortMonthNames
seeFTPClientConfigfor details and examples. -
setShortMonthNames
seeFTPClientConfigfor details and examples.
-