@ComponentProfile(summary="Connect to a FTP server using a username and password", tag="connections,ftp") public class FtpConnection extends FtpConnectionImp
FtpConnectionImp
In the adapter configuration file this class is aliased as ftp-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 |
---|
FtpConnection() |
FtpConnection(java.lang.String uniqueId) |
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) |
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
public FtpConnection()
public FtpConnection(java.lang.String uniqueId)
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