Package com.adaptris.core.ftp
Class FtpConnection
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent
@ComponentProfile(summary="Connect to a FTP server using a username and password",
tag="connections,ftp")
public class FtpConnection
extends FtpConnectionImp
Class containing configuration for both FTP Consumers and producers.
- See Also:
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.
-
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) Methods 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
-
FtpConnection
public FtpConnection() -
FtpConnection
-
-
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
-