@ComponentProfile(summary="Connect to a FTP Server with explicit SSL with a username and password", tag="connections,ftps") public class FtpSslConnection extends FtpConnectionImp
This was tested against vsftpd (2.0.5) which was configured with the following additional parameters.
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=NO
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
Implicit FTP/SSL connections have not been tested; but can be enabled using setImplicitSsl(Boolean)
In the adapter configuration file this class is aliased as ftp-ssl-connection which is the preferred alternative to the fully qualified classname when building your configuration.
FileTransferConnection.UserInfo
DEFAULT_EXPIRATION, DEFAULT_MAX_CACHE_SIZE
log
Constructor and Description |
---|
FtpSslConnection() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptProtocol(java.lang.String s)
Validate the URL Protocol when a URL is used.
|
protected ApacheFtpClientImpl |
createFtpClient(java.lang.String remoteHost,
int port,
int timeoutSecs) |
java.lang.Boolean |
getImplicitSsl() |
void |
setImplicitSsl(java.lang.Boolean b)
Set the connection to use Implicit SSL
|
create, defaultControlPort, getAdditionalSettings, getDefaultAccount, getFtpDataMode, getServerTimezone, getSocketTimeout, getTransferType, initConnection, setAdditionalSettings, setDefaultAccount, setFtpDataMode, setServerTimezone, setSocketTimeout, setTransferType
createUserInfo, defaultPassword, getDefaultPassword, setDefaultPassword
additionalDebug, cacheConnection, closeConnection, connect, disconnect, expirationMillis, forceRelativePath, getAdditionalDebug, getCacheConnection, getCacheExpiration, getDefaultControlPort, getDefaultUserName, getDirectoryRoot, getForceRelativePath, getMaxClientCacheSize, getWindowsWorkAround, maxClientCacheSize, setAdditionalDebug, setCacheConnection, setCacheExpiration, setDefaultControlPort, setDefaultUserName, setForceRelativePath, setMaxClientCache, setWindowsWorkAround, windowsWorkaround, withCacheExpiration
prepareConnection, startConnection, stopConnection
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
protected boolean acceptProtocol(java.lang.String s)
FileTransferConnection
acceptProtocol
in class FileTransferConnection
s
- the URL Protocolprotected ApacheFtpClientImpl createFtpClient(java.lang.String remoteHost, int port, int timeoutSecs) throws java.io.IOException
createFtpClient
in class FtpConnectionImp
java.io.IOException
public java.lang.Boolean getImplicitSsl()
public void setImplicitSsl(java.lang.Boolean b)
b
- defaults to null (false)