public final class FtpsFileSystemConfigBuilder extends FileSystemConfigBuilder
| Modifier and Type | Method and Description |
|---|---|
protected Class<? extends FileSystem> |
getConfigClass() |
FtpsDataChannelProtectionLevel |
getDataChannelProtectionLevel(FileSystemOptions opts) |
Integer |
getDataTimeout(FileSystemOptions opts) |
String |
getDefaultDateFormat(FileSystemOptions opts)
get the language code used by the server.
|
String |
getEntryParser(FileSystemOptions opts) |
org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory |
getEntryParserFactory(FileSystemOptions opts) |
Integer |
getFileType(FileSystemOptions opts)
Get the file type of the file being transferred.
|
String |
getFtpsType(FileSystemOptions opts)
Return the FTPS security mode.
|
static FtpsFileSystemConfigBuilder |
getInstance() |
String |
getKeyPW(FileSystemOptions opts)
get the key password.
|
String |
getKeyStore(FileSystemOptions opts)
get the keyStore path.
|
String |
getKeyStorePW(FileSystemOptions opts)
get the keyStore password.
|
Boolean |
getPassiveMode(FileSystemOptions opts) |
String |
getRecentDateFormat(FileSystemOptions opts)
see
FTPClientConfig for details and examples. |
String |
getServerLanguageCode(FileSystemOptions opts)
get the language code used by the server.
|
String |
getServerTimeZoneId(FileSystemOptions opts)
see
FTPClientConfig for details and examples. |
String[] |
getShortMonthNames(FileSystemOptions opts)
see
FTPClientConfig for details and examples. |
String |
getTrustStore(FileSystemOptions opts)
get the keyStore path.
|
String |
getTrustStorePW(FileSystemOptions opts)
get the trustStore password.
|
Boolean |
getUserDirIsRoot(FileSystemOptions opts) |
void |
setDataChannelProtectionLevel(FileSystemOptions opts,
FtpsDataChannelProtectionLevel prot) |
void |
setDataTimeout(FileSystemOptions opts,
Integer dataTimeout)
set the data timeout for the ftp client.
If you set the dataTimeout to null no dataTimeout will be set on the
ftp client. |
void |
setDefaultDateFormat(FileSystemOptions opts,
String defaultDateFormat)
set the language code used by the server.
|
void |
setEntryParser(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. |
void |
setEntryParserFactory(FileSystemOptions opts,
org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory factory)
FTPFileEntryParserFactory which will be used for ftp-entry parsing.
|
void |
setFileType(FileSystemOptions opts,
Integer fileType)
Sets the file type of the file being transferred.
|
void |
setFtpsType(FileSystemOptions opts,
String ftpsType)
Set FTPS security mode, either "implicit" or "explicit".
|
void |
setKeyPW(FileSystemOptions opts,
String keyPW)
Set the Key password.
|
void |
setKeyStore(FileSystemOptions opts,
String keyStore)
Set the key store.
|
void |
setKeyStorePW(FileSystemOptions opts,
String keyStorePW)
Set the key store password.
|
void |
setPassiveMode(FileSystemOptions opts,
boolean passiveMode)
Enter into passive mode.
|
void |
setRecentDateFormat(FileSystemOptions opts,
String recentDateFormat)
see
FTPClientConfig for details and examples. |
void |
setServerLanguageCode(FileSystemOptions opts,
String serverLanguageCode)
set the language code used by the server.
|
void |
setServerTimeZoneId(FileSystemOptions opts,
String serverTimeZoneId)
see
FTPClientConfig for details and examples. |
void |
setShortMonthNames(FileSystemOptions opts,
String[] shortMonthNames)
see
FTPClientConfig for details and examples. |
void |
setTrustStore(FileSystemOptions opts,
String trustStore)
Set the key store.
|
void |
setTrustStorePW(FileSystemOptions opts,
String trustStorePW)
Set the trust store password.
|
void |
setUserDirIsRoot(FileSystemOptions opts,
boolean userDirIsRoot)
use user directory as root (do not change to fs root).
|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setRootURIpublic static FtpsFileSystemConfigBuilder getInstance()
public void setEntryParserFactory(FileSystemOptions opts, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory factory)
opts - The FileSystemOptions.factory - instance of your factorypublic org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory getEntryParserFactory(FileSystemOptions opts)
opts - The FileSystemOptionssetEntryParserFactory(org.apache.commons.vfs2.FileSystemOptions, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)public void setEntryParser(FileSystemOptions opts, String key)
setEntryParserFactory(org.apache.commons.vfs2.FileSystemOptions, org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)
this is the "key" parameter passed as argument into your custom factoryopts - The FileSystemOptions.key - The key.public String getEntryParser(FileSystemOptions opts)
opts - The FileSystemOptions.setEntryParser(org.apache.commons.vfs2.FileSystemOptions, java.lang.String)protected Class<? extends FileSystem> getConfigClass()
getConfigClass in class FileSystemConfigBuilderpublic void setPassiveMode(FileSystemOptions opts, boolean passiveMode)
opts - The FileSystemOptions.passiveMode - true if passive mode should be used, false otherwise.public Boolean getPassiveMode(FileSystemOptions opts)
opts - The FileSystemOptions.setPassiveMode(org.apache.commons.vfs2.FileSystemOptions, boolean)public void setUserDirIsRoot(FileSystemOptions opts, boolean userDirIsRoot)
opts - The FileSystemOptions.userDirIsRoot - true if the user directory should be the root.public Boolean getUserDirIsRoot(FileSystemOptions opts)
opts - The FileSystemOptions.setUserDirIsRoot(org.apache.commons.vfs2.FileSystemOptions, boolean)public void setFtpsType(FileSystemOptions opts, String ftpsType)
opts - The FileSystemOptions.ftpsType - The file type.public String getFtpsType(FileSystemOptions opts)
opts - The FileSystemOptions.setFtpsType(org.apache.commons.vfs2.FileSystemOptions, java.lang.String)public void setKeyStore(FileSystemOptions opts, String keyStore)
opts - The FileSystemOptions.keyStore - The path for the keyStore.public String getKeyStore(FileSystemOptions opts)
opts - The FileSystemOptions.public void setTrustStore(FileSystemOptions opts, String trustStore)
opts - The FileSystemOptions.trustStore - The path for the keyStore.public String getTrustStore(FileSystemOptions opts)
opts - The FileSystemOptions.public void setKeyStorePW(FileSystemOptions opts, String keyStorePW)
opts - The FileSystemOptions.keyStorePW - The keyStore password.public String getKeyStorePW(FileSystemOptions opts)
opts - The FileSystemOptions.public void setTrustStorePW(FileSystemOptions opts, String trustStorePW)
opts - The FileSystemOptions.trustStorePW - The trustStore password.public String getTrustStorePW(FileSystemOptions opts)
opts - The FileSystemOptions.public void setKeyPW(FileSystemOptions opts, String keyPW)
opts - The FileSystemOptions.keyPW - The key password.public String getKeyPW(FileSystemOptions opts)
opts - The FileSystemOptions.public Integer getDataTimeout(FileSystemOptions opts)
opts - The FileSystemOptions.setDataTimeout(org.apache.commons.vfs2.FileSystemOptions, java.lang.Integer)public void setDataTimeout(FileSystemOptions opts, Integer dataTimeout)
null no dataTimeout will be set on the
ftp client.opts - The FileSystemOptions.dataTimeout - The timeout value.public String getServerLanguageCode(FileSystemOptions opts)
FTPClientConfig
for details and examples.opts - The FileSystemOptions.public void setServerLanguageCode(FileSystemOptions opts, String serverLanguageCode)
FTPClientConfig
for details and examples.opts - The FileSystemOptions.serverLanguageCode - the language code.public String getDefaultDateFormat(FileSystemOptions opts)
FTPClientConfig
for details and examples.opts - The FileSystemOptions.public void setDefaultDateFormat(FileSystemOptions opts, String defaultDateFormat)
FTPClientConfig
for details and examples.opts - The FileSystemOptions.defaultDateFormat - The default date format.public String getRecentDateFormat(FileSystemOptions opts)
FTPClientConfig for details and examples.opts - The FileSystemOptions.public void setRecentDateFormat(FileSystemOptions opts, String recentDateFormat)
FTPClientConfig for details and examples.opts - The FileSystemOptionsrecentDateFormat - The recent date format.public String getServerTimeZoneId(FileSystemOptions opts)
FTPClientConfig for details and examples.opts - The FileSystemOptions.public void setServerTimeZoneId(FileSystemOptions opts, String serverTimeZoneId)
FTPClientConfig for details and examples.opts - The FileSystemOptions.serverTimeZoneId - The server's timezone id.public String[] getShortMonthNames(FileSystemOptions opts)
FTPClientConfig for details and examples.opts - The FileSystemOptions.public void setShortMonthNames(FileSystemOptions opts, String[] shortMonthNames)
FTPClientConfig for details and examples.opts - The FileSystemOptions.shortMonthNames - An array of short month names.public void setDataChannelProtectionLevel(FileSystemOptions opts, FtpsDataChannelProtectionLevel prot)
public FtpsDataChannelProtectionLevel getDataChannelProtectionLevel(FileSystemOptions opts)
public void setFileType(FileSystemOptions opts, Integer fileType)
opts - The FileSystemOptions.fileType - Type of the file being transferredpublic Integer getFileType(FileSystemOptions opts)
opts - The FileSystemOptions.Copyright © 2002–2018 WSO2. All rights reserved.