Package com.adaptris.core.ftp
Class FtpSslConnection
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent
@ComponentProfile(summary="Connect to a FTP Server with explicit SSL with a username and password",
tag="connections,ftps")
public class FtpSslConnection
extends FtpConnectionImp
Allows connections to FTP (Explicit) SSL connections.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adaptris.core.ftp.FileTransferConnection
FileTransferConnection.UserInfo -
Field Summary
Fields inherited from class com.adaptris.core.ftp.FileTransferConnection
DEFAULT_EXPIRATION, DEFAULT_MAX_CACHE_SIZEFields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanValidate the URL Protocol when a URL is used.protected ApacheFtpClientImplcreateFtpClient(String remoteHost, int port, int timeoutSecs) voidSet the connection to use Implicit SSLMethods inherited from class com.adaptris.core.ftp.FtpConnectionImp
create, defaultControlPort, getAdditionalSettings, getDefaultAccount, getFtpDataMode, getServerTimezone, getSocketTimeout, getTransferType, initConnection, setAdditionalSettings, setDefaultAccount, setFtpDataMode, setServerTimezone, setSocketTimeout, setTransferTypeMethods inherited from class com.adaptris.core.ftp.FileTransferConnectionUsingPassword
createUserInfo, defaultPassword, getDefaultPassword, setDefaultPasswordMethods inherited from class com.adaptris.core.ftp.FileTransferConnection
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, withCacheExpirationMethods inherited from class com.adaptris.core.NoOpConnection
prepareConnection, startConnection, stopConnectionMethods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, connectionStateHandler, getConnectionErrorHandler, getConnectionStateHandler, getRuntimeComponent, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setConnectionStateHandler, setRuntimeComponent, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
Constructor Details
-
FtpSslConnection
public FtpSslConnection()
-
-
Method Details
-
acceptProtocol
Description copied from class:FileTransferConnectionValidate the URL Protocol when a URL is used.- Specified by:
acceptProtocolin classFileTransferConnection- Parameters:
s- the URL Protocol- Returns:
- true if the URL protocol is acceptable to the concrete imp.
-
createFtpClient
protected ApacheFtpClientImpl createFtpClient(String remoteHost, int port, int timeoutSecs) throws IOException - Specified by:
createFtpClientin classFtpConnectionImp- Throws:
IOException
-
getImplicitSsl
-
setImplicitSsl
- Parameters:
b- defaults to null (false)
-